@After
  public void tearDown() throws Exception {
    EnvironmentEdgeManagerTestHelper.reset();
    if (store != null) {
      try {
        store.close();
      } catch (IOException e) {
      }
      store = null;
    }
    if (region != null) {
      region.close();
      region = null;
    }
  }
Getting data from memstore and files
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHStore.java