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