@Test
public void testAddSectionsSuccessWhenSectionNameIsNotProvided() {

    QuestionGroupForm questionGroup = new QuestionGroupForm();
    questionGroup.setQuestionPool(new ArrayList<SectionQuestionDetail>(asList(getSectionQuestionDetail(1, "Q1"), getSectionQuestionDetail(2, "Q2"))));
    questionGroup.setSelectedQuestionIds(asList("2"));
    String result = questionGroupController.addSection(questionGroup, requestContext);
    assertThat(questionGroup.getSections().size(), Is.is(1));
    assertThat(questionGroup.getSections().get(0).getName(), Is.is("Misc"));
    assertThat(questionGroup.getSections().get(0).getSectionQuestions().size(), Is.is(1));
    assertThat(questionGroup.getSections().get(0).getSectionQuestions().get(0).getText(), Is.is("Q2"));
    assertThat(result, Is.is("success"));
}