### Question:
JudgmentSeriesFilterConverter { public List<JudgmentSeriesCriteria> convertList(JudgmentGlobalFilter globalFilter, List<JudgmentSeriesFilter> seriesFilters) { Preconditions.checkNotNull(seriesFilters); return seriesFilters.stream().map(f->convert(globalFilter, f)).collect(Collectors.toList()); }  List<JudgmentSeriesCriteria> convertList(JudgmentGlobalFilter globalFilter, List<JudgmentSeriesFilter> seriesFilters); JudgmentSeriesCriteria convert(JudgmentGlobalFilter globalFilter, JudgmentSeriesFilter seriesFilter); @Autowired void setMonthYearStartDateCalculator(MonthYearStartDateCalculator monthYearStartDateCalculator); @Autowired void setMonthYearEndDateCalculator(MonthYearEndDateCalculator monthYearEndDateCalculator);  }### Answer:
@Test public void convertList() { List<JudgmentSeriesFilter> filters = Lists.newArrayList(seriesFilter1, seriesFilter2); List<JudgmentSeriesCriteria> criteriaList = judgmentSeriesFilterConverter.convertList(globalFilter, filters); assertNotNull(criteriaList); assertEquals(filters.size(), criteriaList.size()); IntStream.range(0, filters.size()).forEach(i->assertCriteria(filters.get(i), criteriaList.get(i))); }