StandardQuestionModel implements QuestionModel { @Override public boolean isCheater() { return isCheater; } StandardQuestionModel(Question[] questions); @Override String getQuestionText(); @Override boolean isCheater(); @Override boolean isCorrectAnswer(boolean answer); @Override void gotoNextQuestion(); @Override void cheatRequested(); @Override void whenQuestionTextChanged(EventListener listener); void whenCheatRequested(DataEventListener<Boolean> listener); void setCheater(boolean isCheater); void saveState(StateSaver stateSaver); void loadState(StateLoader stateLoader);  }
@Test public void constructor_initializesCheaterToFalse_whenCalled() { StandardQuestionModel model = new StandardQuestionModel(new Question[]{}); boolean res = model.isCheater(); assertEquals(false, res); }