@Test
public void supported_inChain() {

  QualifierFilter qualifierFilterY =
      new QualifierFilter(CompareOp.EQUAL, new BinaryComparator(Bytes.toBytes("y")));
  FilterList interleaveList = new FilterList(Operator.MUST_PASS_ONE, qualifierFilterY);
  QualifierFilter qualifierFilterX =
      new QualifierFilter(CompareOp.EQUAL, new BinaryComparator(Bytes.toBytes("x")));
  WhileMatchFilter whileMatchFilter = new WhileMatchFilter(qualifierFilterX);
  FilterList chainList = new FilterList(Operator.MUST_PASS_ALL, whileMatchFilter, interleaveList);
  Scan scan = new Scan();
  scan.setFilter(chainList);
  FilterAdapterContext context = new FilterAdapterContext(scan, new DefaultReadHooks());
  assertTrue(instance.isFilterSupported(context, whileMatchFilter).isSupported());
}