try {
cm = TestCacheManagerFactory.fromXml("configs/managed/str-managed-connection-factory.xml");
Cache<String, String> first = cm.getCache("first");
Cache<String, String> second = cm.getCache("second");
StoreConfiguration firstCacheLoaderConfig = first.getCacheConfiguration().persistence().stores().get(0);
assert firstCacheLoaderConfig != null;
StoreConfiguration secondCacheLoaderConfig = second.getCacheConfiguration().persistence().stores().get(0);
assert secondCacheLoaderConfig != null;
assert firstCacheLoaderConfig instanceof JdbcStringBasedStoreConfiguration;
assert secondCacheLoaderConfig instanceof JdbcStringBasedStoreConfiguration;
JdbcStringBasedStore loader = (JdbcStringBasedStore) TestingUtil.getFirstLoader(first);
assert loader.getConnectionFactory() instanceof ManagedConnectionFactory;