InformationCollector implements GlassEventListener, ChangeLevelListener, Information { @Override public void figureDropped(Figure figure) { int before = playerScores.getScore(); playerScores.figureDropped(figure); 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 shouldCallPlayerScoreWhenFigureDropped() { Figure mock = mock(Figure.class); collector.figureDropped(mock); verify(playerScores).figureDropped(mock); }