### Question:
DatabaseObjectExplorer implements DatabaseObjectExplorerView.Presenter, IsElement { private String getSchema( ) { if ( settings.isShowSchemaSelection( ) ) { return view.getSchema( ); } else { return settings.schemaName( ); } } DatabaseObjectExplorer( ); @Inject  DatabaseObjectExplorer( DatabaseObjectExplorerView view,
                                   Caller< DatabaseMetadataService > metadataService,
                                   TranslationService translationService ); @Override HTMLElement getElement( ); void initialize( Settings settings ); void initialize( Settings settings, InitializeCallback initializeCallback ); void addHandler( DatabaseObjectExplorerView.Handler handler ); @Override void onSearch( ); @Override void onOpen( DatabaseObjectRow row );  }### Answer:
@Test public void testOpenWithSchemaSelectionEnabled() { testInitializeWithSchemaSelectionEnabled(); when ( view.getSchema() ).thenReturn( SCHEMA_NAME ); testOpen(); }
@Test public void testSearchWithSchemaSelectionEnabled() { testInitializeWithSchemaSelectionEnabled(); when( view.getSchema() ).thenReturn( SCHEMA_NAME ); testSearch(); }