@Test
public void mustPassAllIsNotSupportedBelowTopLevel() {

  FilterAdapterContext context = new FilterAdapterContext(new Scan(), new DefaultReadHooks());
  PageFilter pageFilter = new PageFilter(20);
  FilterList secondLevelList = new FilterList(Operator.MUST_PASS_ALL, pageFilter);
  FilterList topLevelList = new FilterList(Operator.MUST_PASS_ALL, secondLevelList);
  try (ContextCloseable ignored = context.beginFilterList(topLevelList)) {
    try (ContextCloseable evenMoreIgnored = context.beginFilterList(secondLevelList)) {
      FilterSupportStatus status = pageFilterAdapter.isFilterSupported(context, pageFilter);
      Assert.assertFalse(
          "MUST_PASS_ALL should not be supported lower than top level.", status.isSupported());
    }
  }
}