@Test
public void testOneRow() {

  byte[] rowKey = Bytes.toBytes("row");
  List<KeyOffset> responses = new ArrayList<>();
  responses.add(KeyOffset.create(ByteString.copyFrom(rowKey), 0));
  List<HRegionLocation> locations = adapter.adaptResponse(responses);
  Assert.assertEquals(2, locations.size());
  HRegionLocation location = locations.get(0);
  Assert.assertArrayEquals(HConstants.EMPTY_START_ROW, location.getRegionInfo().getStartKey());
  Assert.assertArrayEquals(rowKey, location.getRegionInfo().getEndKey());
  location = locations.get(1);
  Assert.assertArrayEquals(rowKey, location.getRegionInfo().getStartKey());
  Assert.assertArrayEquals(HConstants.EMPTY_END_ROW, location.getRegionInfo().getEndKey());
}