@Test public void testLogout() { loginController.logout(userForm); verify(loginService).logout(userForm); verifyNoMoreInteractions(loginService); }
public void logout(UserForm userForm) { System.out.println("LoginController.logout " + userForm); loginService.logout(userForm); }
LoginController { public void logout(UserForm userForm) { System.out.println("LoginController.logout " + userForm); loginService.logout(userForm); } }
LoginController { public void logout(UserForm userForm) { System.out.println("LoginController.logout " + userForm); loginService.logout(userForm); }  }
LoginController { public void logout(UserForm userForm) { System.out.println("LoginController.logout " + userForm); loginService.logout(userForm); }  String login(UserForm userForm); void logout(UserForm userForm); }
LoginController { public void logout(UserForm userForm) { System.out.println("LoginController.logout " + userForm); loginService.logout(userForm); }  String login(UserForm userForm); void logout(UserForm userForm); public LoginService loginService; }