@Test
public void testAdapt_BinaryAndEquals() throws IOException {

  byte[] bytes = new byte[] {0, 1, 2};
  BinaryComparator comparator = new BinaryComparator(bytes);
  org.apache.hadoop.hbase.filter.RowFilter filter =
      new org.apache.hadoop.hbase.filter.RowFilter(CompareFilter.CompareOp.EQUAL, comparator);
  Assert.assertEquals(
      FILTERS.key().regex(ReaderExpressionHelper.quoteRegularExpression(bytes)).toProto(),
      adapter.adapt(context, filter).toProto());
}