@@ -0,0 +1,1635 @@
+/*%0A * #%25L%0A * Wisdom-Framework%0A * %25%25%0A * Copyright (C) 2013 - 2014 Wisdom Framework%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *      http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0Apackage org.wisdom.test.parents;%0A%0Aimport org.junit.Test;%0Aimport org.wisdom.api.cookies.Cookie;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A/**%0A * Checks the Fake Cookies holder implementation.%0A */%0Apublic class FakeCookiesTest %7B%0A%0A    @Test%0A    public void addSimpleCookie() %7B%0A        FakeCookies cookies = new FakeCookies();%0A        cookies.add(%22test%22, %22value%22);%0A%0A        assertThat(cookies.get(%22test%22).name()).isEqualTo(%22test%22);%0A        assertThat(cookies.get(%22test%22).value()).isEqualTo(%22value%22);%0A    %7D%0A%0A    @Test%0A    public void addCookie() %7B%0A        FakeCookies cookies = new FakeCookies();%0A        cookies.add(Cookie.cookie(%22test%22, %22value%22).setDomain(%22local%22).setSecure(true).build());%0A%0A        assertThat(cookies.get(%22test%22).name()).isEqualTo(%22test%22);%0A        assertThat(cookies.get(%22test%22).value()).isEqualTo(%22value%22);%0A        assertThat(cookies.get(%22test%22).domain()).isEqualTo(%22local%22);%0A        assertThat(cookies.get(%22test%22).isSecure()).isTrue();%0A    %7D%0A%7D%0A

Test the fake cookies.