@Test
  public void test001LIFOStatsUpdation() {
    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 60 entries into the region
      for (long i = 0L; i < 60L; i++) {
        rgn.put(i, newDummyObject(i));
      }

      // verifies evicted entry values are null in memory
      assertTrue("In memory ", rgn.entries.getEntry(51L).isValueNull());
      assertTrue("In memory ", rgn.entries.getEntry(52L).isValueNull());
      assertTrue("In memory ", rgn.entries.getEntry(53L).isValueNull());

      // get an entry back
      rgn.get(46L);
      rgn.get(51L);
      rgn.get(56L);
      // gets stuck in while loop
      rgn.put(60L, newDummyObject(60));
      rgn.put(61L, newDummyObject(61));
      assertNull("Entry value in VM is not null", rgn.getValueInVM(58L));
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Test failed");
    }

  }
This test does the following :<br>
1)Varify region is LIFO Enabled <br>
2)Perform put operation <br>
3)perform get operation <br>
4)Varify value retrived <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/LIFOEvictionAlgoMemoryEnabledRegionJUnitTest.java