@Test
/** Make sure that the scan rowSet is unaffected when the filter is not set */
public void testNarrowedScanWithoutFilter() {

  Scan scan = new Scan().withStartRow("a".getBytes()).withStopRow("z".getBytes());
  scanAdapter.adapt(scan, throwingReadHooks, query);
  RowSet result = query.toProto(requestContext).getRows();
  RowSet expected =
      RowSet.newBuilder()
          .addRowRanges(
              RowRange.newBuilder()
                  .setStartKeyClosed(ByteString.copyFromUtf8("a"))
                  .setEndKeyOpen(ByteString.copyFromUtf8("z")))
          .build();
  Assert.assertEquals(expected, result);
}