### Question:
DatabaseStructureExplorer implements DatabaseStructureExplorerView.Presenter, IsElement { protected void showSchemas( ) { if ( schemaExplorer.hasItems( ) ) { clearBreadcrumbs( ); setBreadcrumbs( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); view.clearContent( ); view.setContent( schemaExplorer ); } else { onSchemaSelected( null ); } } DatabaseStructureExplorer( ); @Inject  DatabaseStructureExplorer( DatabaseStructureExplorerView view,
                                      DatabaseSchemaExplorer schemaExplorer,
                                      DatabaseObjectExplorer objectExplorer,
                                      TableObjectViewer objectViewer,
                                      ManagedInstance< BreadcrumbItem > itemInstance,
                                      TranslationService translationService ); @Override HTMLElement getElement( ); void initialize( Settings settings ); void initialize( Settings settings, InitializeCallback callback ); void addHandler( DatabaseStructureExplorerView.Handler handler );  }### Answer:
@Test public void testInitializeWithSchemas() { testInitialize(); when( schemaExplorer.hasItems() ).thenReturn( true ); structureExplorer.showSchemas(); verifyBreadcrumbsCleared(); verifyBreadCrumbsAdded( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); verifyVisibleContent( schemaExplorer ); verifyIsActive( schemasBreadcrumbItem ); }
@Test public void testInitializeWithNoSchemas() { testInitialize(); when( schemaExplorer.hasItems() ).thenReturn( false ); structureExplorer.showSchemas(); verifyBreadcrumbsCleared(); verifyBreadCrumbsAdded( dataSourceBreadcrumbItem, objectsBreadcrumbItem ); verifyVisibleContent( objectExplorer ); verifyIsActive( objectsBreadcrumbItem ); }