@Test
public void shouldGetAllQuestions() {

    List<QuestionDetail> questionDetailList = Arrays.asList(getQuestionDetail(1, "title1", QuestionType.NUMERIC), getQuestionDetail(2, "title2", QuestionType.NUMERIC));
    when(questionnaireServiceFacade.getAllQuestions()).thenReturn(questionDetailList);
    String view = questionController.getAllQuestions(model);
    Assert.assertThat(view, is("viewQuestions"));
    Mockito.verify(questionnaireServiceFacade).getAllQuestions();
    Mockito.verify(model).addAttribute(Mockito.eq("questions"), Mockito.eq(questionDetailList));
}