builder.persistence().addStore(JpaStoreConfigurationBuilder.class)
.persistenceUnitName(PERSISTENCE_UNIT_NAME)
.entityClass(getEntityClass());
JpaStore store = new JpaStore();
store.init(new InitializationContextImpl(builder.persistence().stores().get(0).create(), cm.getCache(),
getMarshaller(), new DefaultTimeService(), null, new MarshalledEntryFactoryImpl(getMarshaller())));
store.start();
assertNotNull(store.getEntityManagerFactory());
assertTrue(store.getEntityManagerFactory() instanceof HibernateEntityManagerFactory);