@Test
public void testInterleavedIndexHintUnion() {

  FilterAdapter adapter = FilterAdapter.buildAdapter();
  PrefixFilter p1 = new PrefixFilter("a".getBytes());
  PrefixFilter p2 = new PrefixFilter("abc".getBytes());
  FilterList filterList = new FilterList(Operator.MUST_PASS_ONE, p1, p2);
  RangeSet<RowKeyWrapper> actual = adapter.getIndexScanHint(filterList);
  RangeSet<RowKeyWrapper> expected =
      ImmutableRangeSet.of(
          Range.closedOpen(
              new RowKeyWrapper(ByteString.copyFromUtf8("a")),
              new RowKeyWrapper(ByteString.copyFromUtf8("b"))));
  Assert.assertEquals(expected, actual);
}