@Test
public void testDeleteSection() {

    QuestionGroupForm questionGroup = new QuestionGroupForm();
    String sectionName = "sectionName";
    questionGroup.setSectionName(sectionName);
    questionGroup.addCurrentSection();
    assertThat(questionGroup.getSections().size(), Is.is(1));
    questionGroupController.deleteSection(questionGroup, sectionName);
    assertThat(questionGroup.getSections().size(), Is.is(0));
}