User { public void getMessages() { webService.getMessages(this); } User(WebService webService, int userId, String password); void login(final LoginInterface loginInterface); void logout(); void sendMessage(String message); void getMessages();  }
@Test public void mockFinalMethod() throws Exception { User user = new User(mockWebService, USER_ID, PASSWORD); user.getMessages(); verify(mockWebService).getMessages(user); }