@Test
public void findUpcomingLotteries() {
assertTrue(lotteryQueryService.findUpcomingLotteries().isEmpty());
lotteryCreatedEventHandler.handleMessage(new LotteryCreatedEvent(LOTTERY_ID, LOTTERY_INFO));
List<LotteryInfoQueryResult> upcomingLotteries = lotteryQueryService.findUpcomingLotteries();
assertEquals(1, upcomingLotteries.size());
LotteryInfoQueryResult lottery = upcomingLotteries.get(0);
assertEquals(new LotteryInfoQueryResult(LOTTERY_ID, LOTTERY_INFO), lottery);