private static void assertEncodeSetCookie(List<String> expectedResult, List<Cookie> cookies) {
        assertThat(Cookie.toSetCookieHeaders(cookies), containsInAnyOrder(expectedResult.toArray()));
    }
@author Simon Thoresen Hult
@author bjorncs
container-core/src/test/java/com/yahoo/jdisc/http/CookieTestCase.java