public void shouldBeHungry() {
FacesContext facesContext = mock(FacesContext.class);
BellyController controller = new BellyController(facesContext, new Belly());
MessageAnswer answer = new MessageAnswer();
doAnswer(answer).when(facesContext).addMessage(anyString(), any(FacesMessage.class));
controller.eatCukes();
assertThat(answer.getMessage(), equalTo(MSG_ERROR_HUNGRY));
}
@Test
public void shouldNotBeHungry() {