@Test
public void testLimit() {

  Scan scan = new Scan().setLimit(10);
  scanAdapter.adapt(scan, throwingReadHooks, query);
  int adaptedLimit = (int) query.toProto(requestContext).getRowsLimit();
  Assert.assertEquals(scan.getLimit(), adaptedLimit);
}