InformationCollector implements GlassEventListener, ChangeLevelListener, Information { @Override public void glassOverflown() { int before = playerScores.getScore(); playerScores.glassOverflown(); pool.add(showSign(playerScores.getScore() - before)); } InformationCollector(TetrisPlayerScores playerScores); @Override void glassOverflown(); @Override void linesRemoved(int amount); @Override void figureDropped(Figure figure); @Override String getMessage(); @Override void levelChanged(int levelNumber, GameLevel level); void setInfo(String information);  }
@Test public void shouldCallPlayerScoreWhenGlassOverflown() { collector.glassOverflown(); verify(playerScores).glassOverflown(); }