@Test
public void findCustomers() {
assertTrue(lotteryQueryService.findCustomers().isEmpty());
customerCreatedEventHandler.handleMessage(new CustomerCreatedEvent(WhenCustomerIsCreated.CUSTOMER_ID, WhenCustomerIsCreated.CUSTOMER_INFO));
customerBalanceChangedEventHandler.handleMessage(new CustomerBalanceChangedEvent(WhenCustomerIsCreated.CUSTOMER_ID, 0.0, 50.0, 50.0));
List<CustomerAccountQueryResult> customers = lotteryQueryService.findCustomers();
assertEquals(1, customers.size());
CustomerAccountQueryResult customer = customers.get(0);
assertEquals(WhenCustomerIsCreated.CUSTOMER_ID, customer.getCustomerId());