### Question:
ReassignmentWidgetViewImpl extends Composite implements ReassignmentWidgetView { @Override public void hide() { dataProvider.getList().clear(); table.setRowCount(dataProvider.getList().size(), true); modal.hide(); }  @PostConstruct void init(); @Override void init(final ReassignmentWidgetView.Presenter presenter, List<ReassignmentRow> rows); @Override void delete(ReassignmentRow row); @Override void addOrEdit(ReassignmentRow row); @Override void setReadOnly(boolean readOnly); @Override void show(); void onSubscription(@Observes ReassignmentEvent event); @Override void refreshTable(); @Override void hide();  }### Answer:
@Test public void testHide() { reassignmentWidgetViewImpl.init(presenter, generateRows()); ListDataProvider<ReassignmentRow> dataProvider = getFieldValue(ReassignmentWidgetViewImpl.class, reassignmentWidgetViewImpl, "dataProvider"); reassignmentWidgetViewImpl.hide(); Assert.assertEquals(0, dataProvider.getList().size()); }