@Test
public void testAllRegions() throws IOException, InterruptedException {

  List<HRegionInfo> regionInfoList = connection.getAllRegionInfos(TABLE_NAME);
  SampleRowKeysRequest request = fakeDataService.popLastRequest();
  assertEquals(FULL_TABLE_NAME, request.getTableName());
  assertEquals("", Bytes.toString(regionInfoList.get(0).getStartKey()));
  assertEquals("rowKey", Bytes.toString(regionInfoList.get(0).getEndKey()));
}