@EventListener
 public void generateCheckedException(GenericTestEvent<String> event) throws IOException {
   if ("fail".equals(event.getPayload())) {
     throw new IOException("Test exception");
   }
 }
 @EventListener
 public void generateRuntimeException(GenericTestEvent<String> event) {
   if ("fail".equals(event.getPayload())) {
     throw new IllegalStateException("Test exception");
   }
 }