@Before
  public void prepareResources() throws Exception {
    // to mimic exactly the old code results, both environments here are exactly the same...
    Configuration cfg = createConfiguration(getConfigurationName());
    localEnvironment = new NodeEnvironment(cfg);
    localEnvironment.prepare();

    localCollectionRegion =
        localEnvironment.getCollectionRegion(REGION_NAME, getCacheDataDescription());
    localAccessStrategy = localCollectionRegion.buildAccessStrategy(getAccessType());

    invalidation = localCollectionRegion.getCacheAdapter().isClusteredInvalidation();
    synchronous = localCollectionRegion.getCacheAdapter().isSynchronous();

    // Sleep a bit to avoid concurrent FLUSH problem
    avoidConcurrentFlush();

    remoteEnvironment = new NodeEnvironment(cfg);
    remoteEnvironment.prepare();

    remoteCollectionRegion =
        remoteEnvironment.getCollectionRegion(REGION_NAME, getCacheDataDescription());
    remoteAccessStrategy = remoteCollectionRegion.buildAccessStrategy(getAccessType());
  }