BasicFiltersViewImpl implements BasicFiltersView,
                                             IsElement { @Override public void checkSelectFilter(final String label, final String value) { selectInputs.computeIfPresent(label, (key, values) -> { values.forEach(i -> { if (i.getValue().equals(value) && i.getChecked() == false) { i.setChecked(true); } }); return values; }); }  @PostConstruct void init(); @Override HTMLElement getElement(); @Override void addTextFilter(final String label,
                              final String placeholder,
                              final Consumer<ActiveFilterItem<String>> callback); @Override void addTextFilter(String label, String placeholder, boolean disableFiltersInputHelp, Consumer<ActiveFilterItem<String>> callback); @Override void addNumericFilter(final String label,
                                 final String placeholder,
                                 final Consumer<ActiveFilterItem<Integer>> callback); @Override void addDataSetSelectFilter(final String label,
                                       final DataSetLookup lookup,
                                       final String textColumnId,
                                       final String valueColumnId,
                                       final Consumer<ActiveFilterItem<String>> callback); @Override void addDateRangeFilter(final String label,
                                   final String placeholder,
                                   final Boolean useMaxDate,
                                   final Consumer<ActiveFilterItem<DateRange>> callback); @Override void addSelectFilter(final String label,
                                final Map<String, String> options,
                                final Consumer<ActiveFilterItem<String>> callback); @Override void clearAllSelectFilter(); @Override void checkSelectFilter(final String label,
                                  final String value); @Override void clearSelectFilter(final String label); @Override void addMultiSelectFilter(final String label,
                                     final Map<String, String> options,
                                     final Consumer<ActiveFilterItem<List<String>>> callback); @Override void hideFilterBySection(); @EventHandler("refine-apply") void onApplyClick(@ForEvent("click") Event e);  }
@Test public void testCheckSelectFilter(){ final Input input1 = mock(Input.class); when(input1.getChecked()).thenReturn(true); when(input1.getValue()).thenReturn("1"); final Input input2 = mock(Input.class); when(input2.getChecked()).thenReturn(false); when(input2.getValue()).thenReturn("2"); view.getSelectInputs().put("label1", Arrays.asList( input1, input2 )); view.checkSelectFilter("label1", "1"); view.checkSelectFilter("label1", "2"); verify(input1, never()).setChecked(true); verify(input2).setChecked(true); }