public static void createServerCache(Boolean enableWan, Boolean setPublisher,
      Boolean enableConflation, Boolean enableAsyncConflation) throws Exception {
    NewRegionAttributesDUnitTest test = new NewRegionAttributesDUnitTest();
    cache = test.createCache(new Properties());
    AttributesFactory factory = new AttributesFactory();
    factory.setScope(Scope.DISTRIBUTED_ACK);
    factory.setDataPolicy(DataPolicy.REPLICATE);
    // factory.setPublisher(setPublisher.booleanValue());
    factory.setEnableConflation(enableConflation);
    factory.setEnableAsyncConflation(enableAsyncConflation);
    RegionAttributes attrs = factory.create();
    cache.createRegion(REGION_NAME, attrs);
  }
Creates the cache and the region on the test VM with given parameters

@param enableWan boolean to make test-region wan-enabled
@param setPublisher boolean to make test-region as publisher
@param enableConflation boolean to enable conflation for test-region
@param enableAsyncConflation boolean to enable async conflation on test-region
@throws Exception thrown if any problem occurs while creating cache or test-region

@see AttributesFactory#setPublisher(boolean)
@see AttributesFactory#setEnableConflation(boolean)
@see AttributesFactory#setEnableAsyncConflation(boolean)
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/NewRegionAttributesDUnitTest.java