ResponseUtil { public static final CacheControl getNoStoreCacheControl() { CacheControl cc = new CacheControl(); cc.setNoCache(true); cc.setNoStore(true); cc.setMaxAge(0); cc.setSMaxAge(0); cc.setPrivate(true); return cc; } private  ResponseUtil(); static StreamingOutput getXMLStream(Object toMarshall); static void storeScript(String jobId, Workload workload, JobInstance job); static final CacheControl getNoStoreCacheControl();  }
@Test public void testGetNoStoreCacheControl_1() throws Exception { CacheControl result = ResponseUtil.getNoStoreCacheControl(); assertNotNull(result); assertEquals("private, no-cache, no-store, no-transform, max-age=0, s-maxage=0", result.toString()); assertEquals(true, result.isPrivate()); assertEquals(true, result.isNoTransform()); assertEquals(true, result.isNoCache()); assertEquals(true, result.isNoStore()); assertEquals(0, result.getSMaxAge()); assertEquals(false, result.isProxyRevalidate()); assertEquals(false, result.isMustRevalidate()); assertEquals(0, result.getMaxAge()); }