@Test
public void twoFiltersNotSupported() throws IOException {

  thrown.expect(IllegalArgumentException.class);
  thrown.expectMessage("More than one WhileMatchFilter is not supported.");
  ValueFilter valueFilter =
      new ValueFilter(CompareFilter.CompareOp.LESS, new BinaryComparator(Bytes.toBytes("12")));
  WhileMatchFilter filter = new WhileMatchFilter(valueFilter);
  instance.adapt(emptyScanContext, filter);
  instance.adapt(emptyScanContext, filter);
}