@Test
public void chainedFiltersAreAdapted() throws IOException {

  FilterList filterList = makeFilterList(Operator.MUST_PASS_ALL);
  List<Filter> filters = filterList.getFilters();
  Filters.Filter expectedFilter = adapt(filterList);
  Assert.assertEquals(filters.size(), expectedFilter.toProto().getChain().getFiltersCount());
  for (int i = 0; i < filters.size(); i++) {
    Assert.assertEquals(
        adapt(filters.get(i)).toProto(), expectedFilter.toProto().getChain().getFilters(i));
  }
}