final EntityManagerFactory emf = Persistence.createEntityManagerFactory( "jpajtastandalone", TestHelper.getEnvironmentProperties() );
assertThat( HibernateEntityManagerFactory.class.isAssignableFrom( emf.getClass() ) ).isTrue();
SessionFactory factory = ( (HibernateEntityManagerFactory) emf ).getSessionFactory();
assertThat( factory.getClass() ).isEqualTo( OgmSessionFactoryImpl.class );
Session s = factory.openSession();
assertThat( s.getClass() ).isEqualTo( OgmSessionImpl.class );
assertThat( s.getSessionFactory().getClass() ).isEqualTo( OgmSessionFactoryImpl.class );
s.close();
EntityManager em = emf.createEntityManager();