### Question:
EventHandler { @RabbitListener(queues = "${multiplication.queue}") void handleMultiplicationSolved(final MultiplicationSolvedEvent event) { log.info("Multiplication Solved Event received: {}", event.getMultiplicationResultAttemptId()); try { gameService.newAttemptForUser(event.getUserId(), event.getMultiplicationResultAttemptId(), event.isCorrect()); } catch (final Exception e) { log.error("Error when trying to process MultiplicationSolvedEvent", e); throw new AmqpRejectAndDontRequeueException(e); } } EventHandler(final GameService gameService);   }### Answer:
@Test public void multiplicationAttemptReceivedTest() { Long userId = 1L; Long attemptId = 8L; boolean correct = true; GameStats gameStatsExpected = new GameStats(); MultiplicationSolvedEvent event = new MultiplicationSolvedEvent(attemptId, userId, correct); given(gameService.newAttemptForUser(userId, attemptId, correct)).willReturn(gameStatsExpected); eventHandler.handleMultiplicationSolved(event); verify(gameService).newAttemptForUser(userId, attemptId, correct); }