assertThat(tester.getMessages(FeedbackMessage.ERROR).size(), is(1));
}
@Test
public void testProcessingEventthrowsException_shouldShowErrorFeedback() throws Exception {
doThrow(new WorkflowException()).when(eventService).processEvent(Mockito.<Event> any());
submitForm();
tester.assertNoInfoMessage();
assertThat(tester.getMessages(FeedbackMessage.ERROR).size(), is(1));
}