@Test
 public void testDriverChange() {
   when(view.getDriver()).thenReturn(DRIVER_UUID);
   // emulates the presenter method executed from the UI.
   mainPanel.onDriverChange();
   verify(view, times(1)).getDriver();
   // the handler should have been invoked and collected the expected value.
   assertEquals(DRIVER_UUID, driver);
 }
 @Test
 public void testPasswordChange() {
   when(view.getPassword()).thenReturn(PASSWORD);
   // emulates the presenter method executed from the UI.
   mainPanel.onPasswordChange();
   verify(view, times(1)).getPassword();
   // the handler should have been invoked and collected the expected value.
   assertEquals(PASSWORD, password);
 }
 @Test
 public void testConnectionURLChange() {
   when(view.getConnectionURL()).thenReturn(CONNECTION_URL);
   // emulates the presenter method executed from the UI.
   mainPanel.onConnectionURLChange();
   verify(view, times(1)).getConnectionURL();
   // the handler should have been invoked and collected the expected value.
   assertEquals(CONNECTION_URL, connectionURL);
 }
 @Test
 public void testNameChange() {
   when(view.getName()).thenReturn(NAME);
   // emulates the presenter method executed from the UI.
   mainPanel.onNameChange();
   verify(view, times(1)).getName();
   // the handler should have been invoked and collected the expected value.
   assertEquals(NAME, name);
 }
 @Test
 public void testGetName() {
   when(view.getName()).thenReturn(NAME);
   assertEquals(NAME, mainPanel.getName());
 }
 @Test
 public void testGetDriver() {
   when(view.getDriver()).thenReturn(DRIVER_UUID);
   assertEquals(DRIVER_UUID, mainPanel.getDriver());
 }
 @Test
 public void testGetPassword() {
   when(view.getPassword()).thenReturn(PASSWORD);
   assertEquals(PASSWORD, mainPanel.getPassword());
 }
 @Test
 public void testGetUser() {
   when(view.getUser()).thenReturn(USER);
   assertEquals(USER, mainPanel.getUser());
 }
 @Test
 public void testGetConnectionURL() {
   when(view.getConnectionURL()).thenReturn(CONNECTION_URL);
   assertEquals(CONNECTION_URL, mainPanel.getConnectionURL());
 }