StandardQuestionModel implements QuestionModel { @Override public boolean isCorrectAnswer(boolean answer) { return answer == question.getCorrectAnswer(); } StandardQuestionModel(Question question); @Override String getQuestionText(); @Override boolean isCorrectAnswer(boolean answer);  }
@Test public void isCorrectAnswer_returnsTrueWhenAnswerMatchesCorrectAnswer_whenCalled() { StandardQuestionModel model = new StandardQuestionModel(new Question("the question", true)); assertEquals(true, model.isCorrectAnswer(true)); }
@Test public void isCorrectAnswer_returnsFalseWhenAnswerDoesntMatchCorrectAnswer_whenCalled() { StandardQuestionModel model = new StandardQuestionModel(new Question("the question", true)); assertEquals(false, model.isCorrectAnswer(false)); }