private void verifyWALCount(WALFactory wals, WAL log, int expected) throws Exception {
    Path walPath = AbstractFSWALProvider.getCurrentFileName(log);
    assertEquals(expected, NoEOFWALStreamReader.count(wals, FS, walPath));
  }
Test when returnResults set to false in increment it should not return the result instead it
resturn null.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestDurability.java