### Question:
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; }### Answer:
@Test public void testLogout() { loginController.logout(userForm); verify(loginService).logout(userForm); verifyNoMoreInteractions(loginService); }