// tester.assertInfoMessages("You have successfully registered for access to this application.");
List<Serializable> actualMessages = tester.getMessages(FeedbackMessage.INFO);
assertEquals(1, actualMessages.size());
assertEquals(NotificationMessage.class, actualMessages.get(0).getClass());
NotificationMessage actualMessage = (NotificationMessage) actualMessages.get(0);
assertEquals(expectedMessage, actualMessage.message().getObject());
}
private Answer<User> createAnswerThatJustReturnPassedUser() {
return new Answer<User>() {
public User answer(InvocationOnMock invocation) throws Throwable {