@Test
public void testInit() {

    presenter.init();
    verify(view, times(1)).init(presenter);
    verify(view, times(1)).initWidgets(
            any(DataSetDefBasicAttributesEditor.View.class),
            any(IsWidget.class),
            any(DataSetDefColumnsFilterEditor.View.class),
            any(DataSetDefPreviewTable.View.class),
            any(DataSetDefCacheAttributesEditorView.class),
            any(DataSetDefCacheAttributesEditorView.class),
            any(DataSetDefRefreshAttributesEditor.View.class)
    );
    verify(view, times(1)).addConfigurationTabItemClickHandler(any(Command.class));
    verify(view, times(1)).addPreviewTabItemClickHandler(any(Command.class));
    verify(view, times(1)).addAdvancedTabItemClickHandler(any(Command.class));
    verify(columnsAndFilterEditor, times(1)).setMaxHeight(anyString());
    verify(backendCacheAttributesEditor, times(1)).setRange(anyDouble(), anyDouble());
    verify(clientCacheAttributesEditor, times(1)).setRange(anyDouble(), anyDouble());
    verify(view, times(0)).showConfigurationTab();
    verify(view, times(0)).showPreviewTab();
    verify(view, times(0)).showAdvancedTab();
    verify(view, times(0)).openColumnsFilterPanel(anyString());
    verify(view, times(0)).closeColumnsFilterPanel(anyString());
    verify(view, times(0)).showErrorNotification(any(SafeHtml.class));
    verify(view, times(0)).clearErrorNotification();
}