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.setEnableConflation(enableConflation.booleanValue());
  factory.setEnableAsyncConflation(enableAsyncConflation.booleanValue());
  RegionAttributes attrs=factory.create();
  cache.createRegion(REGION_NAME,attrs);
}

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 . setEnableConflation ( enableConflation . booleanValue ( ) ) ; factory . setEnableAsyncConflation ( enableAsyncConflation . booleanValue ( ) ) ; RegionAttributes attrs = factory . create ( ) ; cache . createRegion ( REGION_NAME , attrs ) ; }
creates the cache and the region on the test vm with given parameters
