CacheControl { public final boolean noTransform() { return noTransform; } 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 testNoTransform() { final CacheControl cc = new CacheControlImplBuilder().noTransform().build(); assertThat(cc.isEmpty()).isFalse(); assertThat(cc.noCache()).isFalse(); assertThat(cc.noStore()).isFalse(); assertThat(cc.noTransform()).isTrue(); assertThat(cc.maxAgeSeconds()).isEqualTo(-1); assertThat(cc.asHeaderValue()).isEqualTo("no-transform"); assertThat(cc.toString()).isEqualTo("CacheControlImpl(no-transform)"); }