Cookie { public String getValue() { return value; } Cookie(final String name, final String value);  Cookie(final String name, final int value);  Cookie(final String name, final long value);  Cookie(final String name, final double value);  Cookie(final String name, final boolean value); String getComment(); void setComment(final String comment); String getDomain(); void setDomain(final String domain); String getPath(); void setPath(final String path); int getMaxAge(); void setMaxAge(final int maxAge); String getName(); String getValue(); void setValue(final String value); boolean isSecure(); void setSecure(final boolean secure); boolean isHttpOnly(); void setHttpOnly(final boolean httpOnly);  }
@Test public void shouldAllowBooleanValues() { Cookie cookie = new Cookie("someName", true); assertThat(cookie.getValue(), is("true")); }
@Test public void shouldAllowIntValues() { Cookie cookie = new Cookie("someName", 14); assertThat(cookie.getValue(), is("14")); }
@Test public void shouldAllowLongValues() { Cookie cookie = new Cookie("someName", 1545454454544844L); assertThat(cookie.getValue(), is("1545454454544844")); }
@Test public void shouldAllowDoubleValues() { Cookie cookie = new Cookie("someName", 22.33); assertThat(cookie.getValue(), is("22.33")); }