@Before
public void before() {
CacheConfiguration<Long, String> cacheConfiguration =
CacheConfigurationBuilder.newCacheConfigurationBuilder(Long.class, String.class, heap(10))
.add(new StoreStatisticsConfiguration(true))
.build();
cacheManager = CacheManagerBuilder.newCacheManagerBuilder()
.withCache("aCache", cacheConfiguration)
.build(true);
cache = cacheManager.getCache("aCache", Long.class, String.class);
StatisticsManager.createPassThroughStatistic(cache, "test", tags(), properties("myproperty=myvalue"), StatisticType.COUNTER, () -> 0);
cache.get(1L);
}