@Test
public void shouldHandleCustomerValidationFailedEvent() {

  given().
    eventHandlers(accountEventHandlers.domainEventHandlers()).
  when().
    aggregate("net.chrisrichardson.bankingexample.customerservice.backend.Customer", customerId).
    publishes(new CustomerValidationFailedEvent(accountId)).
  then().
    verify(() -> {
      verify(accountService).noteCustomerValidationFailed(accountId);
    })
  ;
}