@Test
    void verifyOperation() throws Throwable {
        val adapter = jpaBeanFactory.newJpaVendorAdapter();
        assertNotNull(adapter);

        val ctx = JpaConfigurationContext.builder()
            .dataSource(dataSource())
            .packagesToScan(CollectionUtils.wrapSet(SampleEntity.class.getPackage().getName()))
            .persistenceUnitName("sampleContext")
            .jpaVendorAdapter(adapter)
            .build();
        val bean = jpaBeanFactory.newEntityManagerFactoryBean(ctx,
            casProperties.getAudit().getJdbc()).getObject();
        assertNotNull(bean);
    }
This is {@link CasEclipseLinkJpaBeanFactoryTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-jpa-eclipselink/src/test/java/org/apereo/cas/eclipselink/CasEclipseLinkJpaBeanFactoryTests.java