@Test
    void verifyAggregates() throws Throwable {
        val dto1 = getCasEvent(UUID.randomUUID().toString());
        eventRepository.save(dto1);

        var results = eventRepository.aggregate().toList();
        assertFalse(results.isEmpty());

        results = eventRepository.aggregate(CasTicketGrantingTicketCreatedEvent.class, Duration.ofDays(2)).toList();
        assertFalse(results.isEmpty());
    }
This is {@link InfluxDbCasEventRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-events-influxdb/src/test/java/org/apereo/cas/support/events/dao/InfluxDbCasEventRepositoryTests.java