### Question:
TemplateParamsTablePresenter { public void clear() { dataProvider.getList().clear(); 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 testClear() { presenter.clear(); verify(dataProviderList, times(1)).clear(); verify(dataProvider, times(1)).flush(); }