@Test
public void shouldGetAllSectionQuestionsWithoutExcludedQuestions() {

    List<Integer> excludedQuestions = asList(3);
    List<QuestionDetail> questionDetails = asList(getQuestionDetail(1, "Q1", QuestionType.NUMERIC), getQuestionDetail(2, "Q2", QuestionType.DATE));
    when(questionnaireServiceFacade.getAllActiveQuestions(excludedQuestions)).thenReturn(questionDetails);
    QuestionGroupForm questionGroupForm = getQuestionGroupFormWithOneSectionQuestion("QG1", 3);
    List<SectionQuestionDetail> sectionQuestions = questionGroupController.getAllSectionQuestions(questionGroupForm);
    assertThat(sectionQuestions, Is.is(notNullValue()));
    assertThat(sectionQuestions.size(), Is.is(2));
    assertThat(sectionQuestions.get(0).getQuestionId(), Is.is(1));
    assertThat(sectionQuestions.get(0).getText(), Is.is("Q1"));
    assertThat(sectionQuestions.get(1).getQuestionId(), Is.is(2));
    assertThat(sectionQuestions.get(1).getText(), Is.is("Q2"));
    verify(questionnaireServiceFacade).getAllActiveQuestions(excludedQuestions);
}