### Question:
DefExplorerContent implements IsElement,
                   DefExplorerContentView.Presenter { protected void onDataSourceItemClick(DataSourceDefInfo dataSourceDefInfo) { PlaceRequest placeRequest; if (dataSourceDefInfo.isManaged()) { placeRequest = view.createEditorPlaceRequest(dataSourceDefInfo.getPath()); } else { placeRequest = view.createScreenPlaceRequest(DatabaseStructureExplorerScreen.SCREEN_ID); placeRequest.addParameter(DatabaseStructureExplorerScreen.DATASOURCE_UUID_PARAM, dataSourceDefInfo.getUuid()); placeRequest.addParameter(DatabaseStructureExplorerScreen.DATASOURCE_NAME_PARAM, dataSourceDefInfo.getName()); } placeManager.goTo(placeRequest); } @Inject  DefExplorerContent(DefExplorerContentView view,
                              ManagedInstance<DefItem> itemInstance,
                              PlaceManager placeManager); @Override HTMLElement getElement(); void loadDataSources(Collection<DataSourceDefInfo> dataSourceDefInfos); void loadDrivers(Collection<DriverDefInfo> driverDefInfos); void clear(); void clearDataSources(); @Override void onAddDataSource(); @Override void onAddDriver(); void setHandler(DefExplorerContentView.Handler handler);  }### Answer:
@Test public void testDataSourceDefClick() { PathPlaceRequestMock placeRequest = new PathPlaceRequestMock( dataSource1.getPath() ); when( view.createEditorPlaceRequest( dataSource1.getPath() ) ).thenReturn( placeRequest ); explorerContent.onDataSourceItemClick( dataSource1 ); verify( placeManager, times( 1 ) ).goTo( new PathPlaceRequestMock( dataSource1.getPath() ) ); }