@Test
public void testClickCauseAdditionOfRow() throws Exception {

    view.init();
    Assertions.assertThat(dataProvider.getList()).hasSize(0);
    verify(dataProvider).addDataDisplay(any(CellTable.class));
    verify(addButton).addClickHandler(clickHandlerCaptor.capture());
    // simulate click on the add button
    clickHandlerCaptor.getValue().onClick(mock(ClickEvent.class));
    Assertions.assertThat(dataProvider.getList()).hasSize(1);
    final EnumRow newRow = dataProvider.getList().get(0);
    Assertions.assertThat(newRow.getContext()).isEmpty();
    Assertions.assertThat(newRow.getFactName()).isEmpty();
    Assertions.assertThat(newRow.getFieldName()).isEmpty();
    Assertions.assertThat(newRow.getRaw()).isEmpty();
}