private void assertCheck() {
    assertEquals(expected.size(), result.size());
    for (int i = 0; i < expected.size(); i++) {
      assertEquals(expected.get(i), result.get(i));
    }
  }
Getting data from memstore and files
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHStore.java