@BeforeClass
  public static void beforeEachClass() throws Exception {

    context = mock(ExecutionContext.class);

    final DefaultCacheManager container =
        new DefaultCacheManager("./src/test/resources/infinispan_persistent_config.xml", true);

    TradesCacheSource.loadCache(container.getCache(TradesCacheSource.TRADES_CACHE_NAME));

    factory =
        new InfinispanManagedConnectionFactory() {

          /** */
          private static final long serialVersionUID = 6241061876834919893L;

          @Override
          protected Object performJNDICacheLookup(String jnidName) throws Exception {
            return container;
          }
        };

    factory.setCacheJndiName(JNDI_NAME);
    factory.setCacheTypeMap(
        RemoteInfinispanTestHelper.TRADE_CACHE_NAME + ":" + Trade.class.getName());

    tfactory = new InfinispanCacheExecutionFactory();

    tfactory.start();
  }
 @Override
 protected ObjectExecution createExecution(Select command) throws Exception {
   return (ObjectExecution)
       tfactory.createExecution(
           command,
           context,
           VDBUtility.RUNTIME_METADATA,
           factory.createConnectionFactory().getConnection());
 }