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

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

      assertTrue("1)Total eviction count is not correct ",
          new Long(3).equals(lifoStats.getEvictions()));
      rgn.put(8L, 8L);
      rgn.get(5L);
      assertTrue("2)Total eviction count is not correct ",
          new Long(4).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/LIFOEvictionAlgoEnabledRegionJUnitTest.java