@Test
public void testAdapt_RegexAndEquals() throws IOException {

  String regexp = "^.*hello world.*$";
  RegexStringComparator comparator = new RegexStringComparator(regexp);
  org.apache.hadoop.hbase.filter.RowFilter filter =
      new org.apache.hadoop.hbase.filter.RowFilter(CompareFilter.CompareOp.EQUAL, comparator);
  Assert.assertEquals(
      FILTERS.key().regex(regexp).toProto(), adapter.adapt(context, filter).toProto());
}