*/
@Test (groups = "functional", testName = "loaders.jdbc.binary.BinaryStoreWithManagedConnectionTest")
public class BinaryStoreWithManagedConnectionTest extends ManagedConnectionFactoryTest {
@Override
protected CacheStore createCacheStore() throws Exception {
ConnectionFactoryConfig connectionFactoryConfig = new ConnectionFactoryConfig();
connectionFactoryConfig.setConnectionFactoryClass(ManagedConnectionFactory.class.getName());
connectionFactoryConfig.setDatasourceJndiLocation(getDatasourceLocation());
TableManipulation tm = UnitTestDatabaseManager.buildBinaryTableManipulation();
JdbcBinaryCacheStoreConfig config = new JdbcBinaryCacheStoreConfig(connectionFactoryConfig, tm);
config.setPurgeSynchronously(true);
JdbcBinaryCacheStore jdbcBinaryCacheStore = new JdbcBinaryCacheStore();
jdbcBinaryCacheStore.init(config, new CacheImpl("aName"), getMarshaller());