}
@Test
public void testMapStatistics_withClientOperations() {
final String mapName = randomString();
final LocalMapStats serverMapStats = server.getMap(mapName).getLocalMapStats();
final IMap map = client.getMap(mapName);
final int operationCount = 1123;
for (int i = 0; i < operationCount; i++) {
map.put(i, i);
map.get(i);
map.remove(i);
}
assertEquals("put count", operationCount, serverMapStats.getPutOperationCount());
assertEquals("get count", operationCount, serverMapStats.getGetOperationCount());
assertEquals("remove count", operationCount, serverMapStats.getRemoveOperationCount());
assertTrue("put latency", 0 < serverMapStats.getTotalPutLatency());
assertTrue("get latency", 0 < serverMapStats.getTotalGetLatency());
assertTrue("remove latency", 0 < serverMapStats.getTotalRemoveLatency());
}