### Question:
DataSourceDefEditor extends BaseEditor<DataSourceDefEditorContent, Metadata> implements DataSourceDefEditorView.Presenter { @Override public void onShowContent() { DatabaseStructureExplorer.Settings settings = new DatabaseStructureExplorer.Settings() .dataSourceUuid(getContent().getDef().getUuid()) .dataSourceName(getContent().getDef().getName()); dbStructureExplorer.initialize(settings, new InitializeCallback() { @Override public void onInitializeError(Throwable throwable) { } @Override public void onInitializeSuccess() { showContent(); } }); } @Inject  DataSourceDefEditor(final DataSourceDefEditorView view,
                               final DataSourceDefMainPanel mainPanel,
                               final DataSourceDefEditorHelper editorHelper,
                               final DatabaseStructureExplorer dbStructureExplorer,
                               final PopupsUtil popupsUtil,
                               final PlaceManager placeManager,
                               final DataSourceDefType type,
                               final SavePopUpPresenter savePopUpPresenter,
                               final DeletePopUpPresenter deletePopUpPresenter,
                               final Caller<DataSourceDefEditorService> editorService,
                               final Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartView IsWidget getWidget(); @OnMayClose boolean onMayClose(); @Override boolean mayClose(Integer currentHash); @Override void onSave(); @Override void onCancel(); @Override void onDelete(); Command getLoadDriversSuccessCommand(); ParameterizedCommand<Throwable> getLoadDriversErrorCommand(); @Override void onShowContent();  }### Answer:
@Test public void testOnBrowseDatabase() { prepareLoadFileSuccessful(); editor.onShowContent(); DatabaseStructureExplorer.Settings expectedSettings = new DatabaseStructureExplorer.Settings(); expectedSettings.dataSourceUuid(content.getDef().getUuid()); expectedSettings.dataSourceName(content.getDef().getName()); verify(dbStructureExplorer, times(1)).initialize(eq(expectedSettings), any(InitializeCallback.class)); }