@Test
public void testStartAndEndKeysAreSet() {

  byte[] startKey = Bytes.toBytes(START_KEY);
  byte[] stopKey = Bytes.toBytes(STOP_KEY);
  Scan scan = new Scan().withStartRow(startKey).withStopRow(stopKey);
  scanAdapter.adapt(scan, throwingReadHooks, query);
  Assert.assertEquals(
      toRowSet(toRange(startKey, stopKey)), query.toProto(requestContext).getRows());
}