public static void createEvents(final CasEventRepository casEventRepository) {
        IntStream.range(1, 1000).forEach(Unchecked.intConsumer(i -> createEvent(i, casEventRepository)));
    }
This is {@link MockTicketGrantingTicketCreatedEventProducer}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-electrofence/src/test/java/org/apereo/cas/impl/mock/MockTicketGrantingTicketCreatedEventProducer.java