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");
CacheLoaderConfiguration firstCacheLoaderConfig = first.getCacheConfiguration().loaders().cacheLoaders().get(0);
assert firstCacheLoaderConfig != null;
CacheLoaderConfiguration secondCacheLoaderConfig = second.getCacheConfiguration().loaders().cacheLoaders().get(0);
assert secondCacheLoaderConfig != null;
assert firstCacheLoaderConfig instanceof JdbcStringBasedCacheStoreConfiguration;
assert secondCacheLoaderConfig instanceof JdbcStringBasedCacheStoreConfiguration;
CacheLoaderManager cacheLoaderManager = first.getAdvancedCache().getComponentRegistry().getComponent(CacheLoaderManager.class);
JdbcStringBasedCacheStore loader = (JdbcStringBasedCacheStore) cacheLoaderManager.getCacheLoader();