@Test
public void testRemoveQuestion() {

    QuestionForm questionForm = new QuestionForm();
    ArrayList<Question> questions = new ArrayList<Question>();
    questionForm.setQuestions(questions);
    String title = "title";
    questions.add(getQuestion("1", title, "freeText"));
    questionController.removeQuestion(questionForm, "");
    questionController.removeQuestion(questionForm, "junk");
    Assert.assertThat(questionForm.getQuestions().size(), is(1));
    questionController.removeQuestion(questionForm, title);
    Assert.assertThat(questionForm.getQuestions().size(), is(0));
}