assertEquals(size, stats.getHits());
}
@Test
public void testNearCachePopulatedAndHitsGenerated2() throws Exception {
final IMap map = client.getMap(randomMapName(NEAR_CACHE_WITH_NO_INVALIDATION));
final int size = 1278;
populateNearCache(map, size);
for (int i = 0; i < size; i++) {
map.get(i); //generate near cache hits
}
NearCacheStats stats = map.getLocalMapStats().getNearCacheStats();
System.out.println("stats = " + stats);
assertEquals(size, stats.getOwnedEntryCount());
assertEquals(size, stats.getHits());
}