@CacheSpec(implementation = Implementation.Caffeine, population = Population.EMPTY,
maximumSize = Maximum.DISABLED, weigher = CacheWeigher.DEFAULT,
expireAfterAccess = Expire.DISABLED, expireAfterWrite = Expire.DISABLED,
refreshAfterWrite = Expire.DISABLED, keys = ReferenceType.STRONG,
values = ReferenceType.STRONG)
@Test(dataProvider = "caches")
public void noPolicy_async(AsyncLoadingCache<Integer, Integer> cache, CacheContext context) {
assertThat(cache.synchronous().policy().eviction(), is(Optional.empty()));
assertThat(cache.synchronous().policy().expireAfterWrite(), is(Optional.empty()));
assertThat(cache.synchronous().policy().expireAfterAccess(), is(Optional.empty()));
assertThat(cache.synchronous().policy().refreshAfterWrite(), is(Optional.empty()));
}
}