StandardCheatModel implements CheatModel { public boolean isAnswerShown() { return answerShown; } StandardCheatModel(String correctAnswer); @Override String getCorrectAnswer(); @Override void setAnswerShown(boolean answerShown); boolean isAnswerShown(); void whenAnswerShownChanged(EventListener listener); void saveState(StateSaver stateSaver); void loadState(StateLoader stateLoader);  }
@Test public void isAnswerShown_returnsFalseByDefault() { StandardCheatModel model = new StandardCheatModel("True"); boolean res = model.isAnswerShown(); assertEquals(false, res); }