@Test
public void collectUnsupportedStatusesStartsANewContext() {

  FilterListAdapter filterListAdapter =
      new FilterListAdapter(
          new FilterAdapter() {
            @Override
            public void collectUnsupportedStatuses(
                FilterAdapterContext context, Filter filter, List<FilterSupportStatus> statuses) {
              Assert.assertEquals(
                  "FilterListDepth should be incremented in isFilterSupported.",
                  1,
                  context.getFilterListDepth());
              statuses.add(FilterSupportStatus.newNotSupported("Test"));
            }
          });
  Assert.assertEquals("Initial depth should be 0.", 0, emptyScanContext.getFilterListDepth());
  FilterList filterList = makeFilterList(Operator.MUST_PASS_ALL);
  FilterSupportStatus status = filterListAdapter.isFilterSupported(emptyScanContext, filterList);
  Assert.assertFalse(
      "collectUnsupportedStatuses should have been invoked returning unsupported statuses.",
      status.isSupported());
}