.entityClass(User.class).build();
StoreConfiguration storeConfiguration = cacheConfig.persistence().stores().get(0);
assertTrue(storeConfiguration instanceof JpaStoreConfiguration);
JpaStoreConfiguration jpaCacheLoaderConfig = (JpaStoreConfiguration) storeConfiguration;
assertEquals(PERSISTENCE_UNIT_NAME, jpaCacheLoaderConfig.persistenceUnitName());
assertEquals(User.class, jpaCacheLoaderConfig.entityClass());
EmbeddedCacheManager cacheManager = new DefaultCacheManager(globalConfig);
cacheManager.defineConfiguration("userCache", cacheConfig);