@Test
    @SetSystemProperty(key = CasRuntimeHintsRegistrar.SYSTEM_PROPERTY_SPRING_AOT_PROCESSING, value = "true")
    void verifyNullableEntityManager() {
        val unitProvider = new DummyJpaPersistenceUnitProvider(applicationContext, null);
        val entityManager = unitProvider.recreateEntityManagerIfNecessary("DummyUnit");
        assertNotNull(entityManager);
        unitProvider.destroy();
    }
This is {@link JpaPersistenceUnitProviderTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-jpa-util/src/test/java/org/apereo/cas/configuration/support/JpaPersistenceUnitProviderTests.java