@Test
  public void test003EntryEvictionCount() {
    try {
      assertNotNull(cache);
      Region rgn = cache.getRegion(SEPARATOR + regionName);
      assertNotNull(rgn);

      assertTrue("Entry count not 0 ", new Long(0).equals(lifoStats.getCounter()));
      // put 60 entries into the region
      for (long i = 0L; i < 60L; i++) {
        rgn.put(i, newDummyObject(i));
      }

      assertTrue("1)Total eviction count is not correct ",
          new Long(10).equals(lifoStats.getEvictions()));
      rgn.put(60L, newDummyObject(60));
      rgn.get(55L);
      assertTrue("2)Total eviction count is not correct ",
          new Long(11).equals(lifoStats.getEvictions()));
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Test failed");
    }
  }
This test does the following :<br>
1)Perform put operation <br>
2)Verify count of evicted entries <br>
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/LIFOEvictionAlgoMemoryEnabledRegionJUnitTest.java