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