@Test
public void testEmptyRowList() {

  List<KeyOffset> rowKeys = new ArrayList<>();
  List<HRegionLocation> locations = adapter.adaptResponse(rowKeys);
  Assert.assertEquals(1, locations.size());
  HRegionLocation location = locations.get(0);
  Assert.assertArrayEquals(HConstants.EMPTY_START_ROW, location.getRegionInfo().getStartKey());
  Assert.assertArrayEquals(HConstants.EMPTY_END_ROW, location.getRegionInfo().getEndKey());
  Assert.assertEquals("host", location.getHostname());
  Assert.assertEquals(123, location.getPort());
}