@Test
public void testStopExclusive() {

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