### Question:
DataSourceDefMainPanel implements DataSourceDefMainPanelView.Presenter,
                   IsElement { public String getPassword() { return view.getPassword(); } @Inject  DataSourceDefMainPanel(final DataSourceDefMainPanelView view); void setHandler(final DataSourceDefMainPanelView.Handler handler); @Override void onNameChange(); @Override void onConnectionURLChange(); @Override void onUserChange(); @Override void onPasswordChange(); @Override void onDriverChange(); @Override void onTestConnection(); @Override HTMLElement getElement(); void setName(final String name); String getName(); void setNameErrorMessage(final String message); void clearNameErrorMessage(); String getConnectionURL(); void setConnectionURLErrorMessage(String message); void clearConnectionURLErrorMessage(); String getUser(); void setUser(final String user); void setUserErrorMessage(final String message); void clearUserErrorMessage(); String getPassword(); void setPassword(final String password); void setPasswordErrorMessage(final String message); void clearPasswordErrorMessage(); String getDriver(); void setDriver(final String driver); void setDriverErrorMessage(final String message); void clearDriverErrorMessage(); void loadDriverOptions(final List<Pair<String, String>> driverOptions,
                                  final boolean addEmptyOption); void clear();  }### Answer:
@Test public void testGetPassword() { when ( view.getPassword() ).thenReturn( PASSWORD ); assertEquals( PASSWORD, mainPanel.getPassword() ); }