@Test
public void testStartAndEndKeysNonDefault() {

  byte[] startKey = Bytes.toBytes(START_KEY);
  byte[] stopKey = Bytes.toBytes(STOP_KEY);
  Scan scan = new Scan().withStartRow(startKey, false).withStopRow(stopKey, true);
  scanAdapter.adapt(scan, throwingReadHooks, query);
  Assert.assertEquals(
      toRowSet(
          RowRange.newBuilder()
              .setStartKeyOpen(ByteStringer.wrap(startKey))
              .setEndKeyClosed(ByteStringer.wrap(stopKey))
              .build()),
      query.toProto(requestContext).getRows());
}