Divisor implements GameLifeCycle { public void restart() { this.dispose(); gameContext.showRoundStats(stats, this); } Divisor(final IGameContext gameContext, final Stats stats, final boolean isRabbit); @Override void launch(); void restart(); @Override void dispose();  }
@Test void shouldRestart() { Divisor divisor = new Divisor(mockGameContext, mockStats, false); divisor.restart(); verify(mockGameContext).clear(); verify(mockGameContext).showRoundStats(any(), any()); }