@Test
public void testAddQuestion() {

    QuestionGroupForm questionGroupForm = getQuestionGroupForm(TITLE, "Create.Client", "Default");
    questionGroupForm.getCurrentQuestion().setText("Question1");
    questionGroupForm.getCurrentQuestion().setType("freeText");
    when(requestContext.getMessageContext()).thenReturn(messageContext);
    String result = questionGroupController.addQuestion(questionGroupForm, requestContext);
    assertThat(result, is("success"));
    verify(requestContext, times(1)).getMessageContext();
}