### Question:
TemplateParamsTablePresenter { public void setItems(final List<TemplateParam> items) { dataProvider.getList().clear(); dataProvider.getList().addAll(items); dataProvider.flush(); } @Inject  TemplateParamsTablePresenter(final View view); @PostConstruct void init(); void setItems(final List<TemplateParam> items); void clear(); View getView(); void setParamChangeHandler(final ParamChangeHandler paramChangeHandler);  }### Answer:
@Test public void testSetItems() { @SuppressWarnings("unchecked") List<TemplateParam> items = mock(List.class); presenter.setItems(items); verify(dataProviderList, times(1)).clear(); verify(dataProviderList, times(1)).addAll(items); verify(dataProvider, times(1)).flush(); }