@Test
public void testPrefix() {

  byte[] prefix = Bytes.toBytes("prefix");
  byte[] prefixEnd = calculatePrefixEnd(prefix);
  Scan scan = new Scan();
  scan.setRowPrefixFilter(prefix);
  scanAdapter.adapt(scan, throwingReadHooks, query);
  Assert.assertEquals(
      toRowSet(toRange(prefix, prefixEnd)), query.toProto(requestContext).getRows());
}