Program: 19302
Project: 19302
Buggy source:
@Test public void testCacheStatistics() throws Exception {
  cache.put(1l,"String_Node_Str");
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  Map<Long,String> entries=new HashMap<Long,String>();
  entries.put(2l,"String_Node_Str");
  entries.put(3l,"String_Node_Str");
  cache.putAll(entries);
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.put(1l,"String_Node_Str");
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(4L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.putAll(entries);
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(6L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.getAndPut(4l,"String_Node_Str");
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(100.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(7L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.getAndPut(4l,"String_Node_Str");
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  String value=cache.get(1l);
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(66.66667f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(33.333336f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  value=cache.get(1234324324l);
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertTrue(cache.containsKey(1l));
  assertFalse(cache.containsKey(1234324324l));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertTrue(cache.remove(1L));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertFalse(cache.remove(1L));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.put(1l,"String_Node_Str");
  assertTrue(cache.remove(1L,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertFalse(cache.remove(1L,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.clear();
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.removeAll();
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  entries.put(21L,"String_Node_Str");
  cache.putAll(entries);
  cache.removeAll();
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(12L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(5L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.putAll(entries);
  entries.remove(21L);
  cache.removeAll(entries.keySet());
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(15L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(7L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.removeAll(entries.keySet());
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(15L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(7L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
}

Fixed version (ground truth):
@Test public void testCacheStatistics() throws Exception {
  final float DELTA=1.0f;
  cache.put(1l,"String_Node_Str");
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  Map<Long,String> entries=new HashMap<Long,String>();
  entries.put(2l,"String_Node_Str");
  entries.put(3l,"String_Node_Str");
  cache.putAll(entries);
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.put(1l,"String_Node_Str");
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(4L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.putAll(entries);
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(6L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.getAndPut(4l,"String_Node_Str");
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(100.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(7L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.getAndPut(4l,"String_Node_Str");
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  String value=cache.get(1l);
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(66.0f,(float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),DELTA);
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(33.0f,(float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),DELTA);
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  value=cache.get(1234324324l);
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertTrue(cache.containsKey(1l));
  assertFalse(cache.containsKey(1234324324l));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertTrue(cache.remove(1L));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertFalse(cache.remove(1L));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(8L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(1L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.put(1l,"String_Node_Str");
  assertTrue(cache.remove(1L,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(60.0f,(float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),DELTA);
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(40.0f,(float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),DELTA);
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertFalse(cache.remove(1L,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.clear();
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.removeAll();
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(9L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(2L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  entries.put(21L,"String_Node_Str");
  cache.putAll(entries);
  cache.removeAll();
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(12L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(5L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.putAll(entries);
  entries.remove(21L);
  cache.removeAll(entries.keySet());
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(15L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(7L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  cache.removeAll(entries.keySet());
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(3L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(50.0f,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(15L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(7L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertEquals(0L,lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
  assertThat((Float)lookupManagementAttribute(cache,CacheStatistics,"String_Node_Str"),greaterThanOrEqualTo(0f));
}