int doScan(Table table, Scan scan, int expectedCount) throws IOException {
    try (ResultScanner results = table.getScanner(scan)) {
      results.next();
    }
    return verifyCount(expectedCount);
  }
check some of the methods and make sure we are incrementing each time. Its a bit tediuous to
cover all methods here and really is a bit brittle since we can always add new methods but
won't be sure to add them here. So we just can cover the major ones.
@throws Exception on failure
hbase-endpoint/src/test/java/org/apache/hadoop/hbase/client/TestRpcControllerFactory.java