// Create and run scanner
VisitorFactoryTester visitorFactory = new VisitorFactoryTester();
TableScanner scanner = new TableScanner(om, objectType, numPartitions, visitorFactory, savepointDirectoryName);
List<Map.Entry<Long, Long>> ranges = scanner.makeRanges();
scanner.scan();
Long actualCount = 0L;
for(VisitorTester visitor : visitorFactory.getInstances()) {
actualCount += visitor.getObjectCount();
}