@Override
public void call() {
Cache<String, String> first = cm.getCache("first");
Cache<String, String> second = cm.getCache("second");
StoreConfiguration firstCacheLoaderConfig = first.getCacheConfiguration().persistence().stores().get(0);
assertNotNull(firstCacheLoaderConfig);
assertTrue(firstCacheLoaderConfig instanceof JdbcStringBasedStoreConfiguration);
StoreConfiguration secondCacheLoaderConfig = second.getCacheConfiguration().persistence().stores().get(0);
assertNotNull(secondCacheLoaderConfig);
assertTrue(secondCacheLoaderConfig instanceof JdbcStringBasedStoreConfiguration);
JdbcStringBasedStore loader = (JdbcStringBasedStore) TestingUtil.getFirstLoader(first);
assertTrue(loader.getConnectionFactory() instanceof ManagedConnectionFactory);
}