@Test
public void testAddQuestionForSuccessWhenTwoChoicesAreGivenForSigleSelect() throws Exception {

    QuestionForm questionForm = new QuestionForm();
    questionForm.getCurrentQuestion().setText("  " + TITLE + "    ");
    questionForm.getCurrentQuestion().setType("singleSelect");
    questionForm.getCurrentQuestion().setCurrentChoice("C1");
    questionForm.getCurrentQuestion().addAnswerChoice();
    questionForm.getCurrentQuestion().setCurrentChoice("C2");
    questionForm.getCurrentQuestion().addAnswerChoice();
    when(requestContext.getMessageContext()).thenReturn(messageContext);
    String result = questionController.addQuestion(questionForm, requestContext, true);
    Assert.assertThat(result, is(notNullValue()));
    Assert.assertThat(result, is("success"));
    Assert.assertThat(questionForm.getQuestions().size(), is(1));
}