public String encode(String name, String value) {
        return encode(new DefaultCookie(name, value));
    }
@Test
    public void testRejectCookieValueWithSemicolon() {
        assertThrows(IllegalArgumentException.class, new Executable() {
            @Override
            public void execute() {
                ClientCookieEncoder.STRICT.encode(new DefaultCookie("myCookie", "foo;bar"));
            }
        });
    }