class Cookie {

    public String getValue() {
        return value;
    }

}

class CookieTest {

    @Test
    public void shouldAllowDoubleValues() {

        Cookie cookie = new Cookie("someName", 22.33);
        assertThat(cookie.getValue(), is("22.33"));
    }

}