@Test
public void testToStringCacheControlWithAllArguments() throws Exception {

    CacheControl cacheControl = aCacheControl()
            .withMaxAge(60)
            .withMustRevalidate(true)
            .withNoCache(true)
            .withNoStore(true)
            .withNoTransform(true)
            .withPrivate(true)
            .withProxyRevalidate(true)
            .withSMaxAge(60)
            .withPrivateFields(newArrayList("aaa"))
            .withNoCacheFields(newArrayList("bbb"))
            .withCacheExtension(ImmutableMap.of("foo", "bar"))
            .build();
    assertEquals("private=\"aaa\", no-cache=\"bbb\", no-store, no-transform, must-revalidate, proxy-revalidate, 60, 60, foo=bar",
                 cacheControlHeaderDelegate.toString(cacheControl));
}