### Question:
DecisionComponentsView implements DecisionComponents.View { @PostConstruct public void init() { getDrgElementFilter().selectpicker("refresh"); getDrgElementFilter().on("hidden.bs.select", onDrgElementFilterChange()); setupTermFilterPlaceholder(); } @Inject  DecisionComponentsView(final HTMLSelectElement drgElementFilter,
                                  final HTMLInputElement termFilter,
                                  final HTMLDivElement list,
                                  final HTMLDivElement emptyState,
                                  final HTMLDivElement loading,
                                  final HTMLDivElement componentsCounter,
                                  final TranslationService translationService); @PostConstruct void init(); @Override void init(final DecisionComponents presenter); @EventHandler("term-filter") void onTermFilterChange(final KeyUpEvent e); @Override void clear(); @Override void addListItem(final HTMLElement htmlElement); @Override void showEmptyState(); @Override void showLoading(); @Override void hideLoading(); @Override void disableFilterInputs(); @Override void enableFilterInputs(); @Override void setComponentsCounter(final Integer count);  }### Answer:
@Test public void testInit() { final JQuerySelectPicker selectPicker = mock(JQuerySelectPicker.class); final CallbackFunction callback = mock(CallbackFunction.class); final String placeholder = "placeholder"; doReturn(selectPicker).when(view).getDrgElementFilter(); when(view.onDrgElementFilterChange()).thenReturn(callback); when(translationService.format(DecisionComponentsView_EnterText)).thenReturn(placeholder); termFilter.placeholder = "something"; view.init(); verify(selectPicker).selectpicker("refresh"); verify(selectPicker).on("hidden.bs.select", callback); assertEquals(placeholder, termFilter.placeholder); }