RemotePolicyCacheConfiguration configuration =
new RemotePolicyCacheConfiguration();
configuration.setMaxTimeToLive(new Integer(100));
configuration.setDefaultTimeToLive(new Integer(150));
CacheControlConstraints constraints = new CacheControlConstraints(configuration);
CacheControl cacheControl = constraints.getDefaultCacheControl();
assertEquals(100, cacheControl.getTimeToLive());
}