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

      // check for is LIFO Enable
      assertTrue("Eviction Algorithm is not LIFO",
          (((EvictionAttributesImpl) rgn.getAttributes().getEvictionAttributes()).isLIFO()));

      // put four entries into the region
      for (int i = 0; i < 8; i++) {
        rgn.put((long) i, (long) i);
      }

      assertTrue("In Memory entry count not 5 ",
          new Long(5).equals(lifoStats.getCounter()));

      // varifies evicted entry values are null in memory
      assertTrue("In memory ", rgn.entries.getEntry(5L).isValueNull());
      assertTrue("In memory ", rgn.entries.getEntry(6L).isValueNull());
      assertTrue("In memory ", rgn.entries.getEntry(7L).isValueNull());

      // get an entry back
      Long value = (Long) rgn.get(4L);
      value = (Long) rgn.get(5L);
      value = (Long) rgn.get(6L);

      // check for entry value
      assertTrue("Value not matched ", value.equals(6L));
      assertNull("Entry value in VM is not null", rgn.getValueInVM(7L));

      assertTrue("Entry count not 7 ", new Long(7).equals(lifoStats.getCounter()));
      // check for destory
      rgn.destroy(3L);
      assertTrue("Entry count not 6 ", new Long(6).equals(lifoStats.getCounter()));
      // check for invalidate
      rgn.invalidate(1L);
      assertTrue("Entry count not 5 ", new Long(5).equals(lifoStats.getCounter()));
      // check for remove
      rgn.put(8L, 8L);
      rgn.remove(2L);
      assertTrue("Entry count not 4 ", new Long(4).equals(lifoStats.getCounter()));
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Test failed");
    }

  }
This test does the following :<br>
1)Verify region is LIFO Enabled <br>
2)Perform put operation <br>
3)perform get operation <br>
4)Verify value retrieved <br>
5)Verify count (entries present in memory) after put operations <br>
6)Verify count (entries present in memory) after get (performs faultin) operation <br>
7)Verify count (entries present in memory) after remove operation <br>
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/LIFOEvictionAlgoEnabledRegionJUnitTest.java