endpoints.add(DrillbitEndpoint.newBuilder().setAddress(HOST_E).setControlPort(1234).build());
endpoints.add(DrillbitEndpoint.newBuilder().setAddress(HOST_F).setControlPort(1234).build());
endpoints.add(DrillbitEndpoint.newBuilder().setAddress(HOST_G).setControlPort(1234).build());
endpoints.add(DrillbitEndpoint.newBuilder().setAddress(HOST_H).setControlPort(1234).build());
HBaseGroupScan scan = new HBaseGroupScan();
scan.setRegionsToScan(regionsToScan);
scan.setHBaseScanSpec(new HBaseScanSpec(TABLE_NAME, splits[0], splits[0], null));
scan.applyAssignments(endpoints);
int i = 0;
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'A'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'A'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'B'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'C'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'D'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'E'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'F'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'G'
assertEquals(1, scan.getSpecificScan(i++).getRegionScanSpecList().size()); // 'H'
testParallelizationWidth(scan, i);
}