@Test
public void testStopInclusive() {

  byte[] stopKey = Bytes.toBytes(STOP_KEY);
  Scan scan = new Scan().withStopRow(stopKey, true);
  scanAdapter.adapt(scan, throwingReadHooks, query);
  RowSet expected =
      toRowSet(RowRange.newBuilder().setEndKeyClosed(ByteString.copyFrom(stopKey)).build());
  Assert.assertEquals(expected, query.toProto(requestContext).getRows());
}