### Question:
DropOutDeathHandler implements PlayerDeathHandler { @Override public void onPlayerDeath(UUID playerId) { gamePlayerStorage .getPlayer(playerId) .getStatus() .dropOut(); }  @Override void onPlayerDeath(UUID playerId);  }### Answer:
@Test public void onPlayerDeath() { GamePlayerStorage<? super GamePlayer> storage = mock(GamePlayerStorage.class); DropOutDeathHandler dropOutDeathHandler = new DropOutDeathHandler(storage); UUID uuid = UUID.randomUUID(); GamePlayer gamePlayer = mock(GamePlayer.class); GamePlayerStatus gamePlayerStatus = mock(GamePlayerStatus.class); when(gamePlayer.getStatus()).thenReturn(gamePlayerStatus); when(storage.getPlayer(uuid)).thenReturn(gamePlayer); dropOutDeathHandler.onPlayerDeath(uuid); verify(gamePlayerStatus).dropOut(); }