@Test
    void verifyOperation() {
        val agent = ServiceLoader.load(ApplicationEntrypointInitializer.class).stream()
            .map(ServiceLoader.Provider::get)
            .toList()
            .getFirst();
        assertDoesNotThrow(() -> agent.initialize(ArrayUtils.EMPTY_STRING_ARRAY));
        assertNotNull(greeter.greet(false));
        assertThrows(IllegalArgumentException.class, () -> greeter.greet(true));

    }
This is {@link ElasticApmAgentInitializerTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-elastic/src/test/java/org/apereo/cas/apm/ElasticApmAgentInitializerTests.java