CacheControl { public final boolean noCache() { return noCache; } CacheControl(boolean noCache, boolean noStore, boolean noTransform, long maxAgeSeconds); boolean isEmpty(); final boolean noCache(); final boolean noStore(); final boolean noTransform(); final long maxAgeSeconds(); abstract CacheControlBuilder toBuilder(); abstract String asHeaderValue(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testNoCache() { final CacheControl cc = new CacheControlImplBuilder().noCache().build(); assertThat(cc.isEmpty()).isFalse(); assertThat(cc.noCache()).isTrue(); assertThat(cc.noStore()).isFalse(); assertThat(cc.noTransform()).isFalse(); assertThat(cc.maxAgeSeconds()).isEqualTo(-1); assertThat(cc.asHeaderValue()).isEqualTo("no-cache"); assertThat(cc.toString()).isEqualTo("CacheControlImpl(no-cache)"); }