### Question:
Scores implements PlayerScores { @Override public void event(Object object) { if (!(object instanceof Events)) return; Events event = (Events)object; if (event.isWin()) { score += winScore.getValue(); } else if (event.isApple()) { score += appleScore.getValue(); } else if (event.isGold()) { score += goldScore.getValue(); } else if (event.isDie()) { score -= diePenalty.getValue(); } else if (event.isStone()) { score += stoneScore.getValue(); } else if (event.isEat()) { score += eatScore.getValue() * event.getAmount(); } score = Math.max(0, score); } Scores(int startScore, Settings settings); @Override int clear(); @Override Integer getScore(); @Override void event(Object object); @Override void update(Object score);  }### Answer:
@Test public void eventTest() { for (int i = 0; i < 2; i++) { int before = scores.getScore(); scores.event(event); int after = scores.getScore(); assertEquals("После события '" + event + "', счёт не корректен!", before + changeValue, after); } }