public static void createCacheForVM1() {
    try {

      ds = (new DiskRegByteArrayDUnitTest()).getSystem(props);
      cache = CacheFactory.create(ds);
      AttributesFactory factory = new AttributesFactory();
      factory.setScope(Scope.DISTRIBUTED_ACK);
      factory.setDataPolicy(DataPolicy.PERSISTENT_REPLICATE);
      factory.setDiskSynchronous(false);
      factory.setDiskStoreName(cache.createDiskStoreFactory().setDiskDirs(dirs)
          .create("DiskRegByteArrayDUnitTest").getName());
      RegionAttributes attr = factory.create();
      region = cache.createVMRegion("region", attr);
    } catch (Exception ex) {
      ex.printStackTrace();
      fail(ex.toString());
    }
  }
Disk Reg DUNIT Test: A byte array value when put in a remote VM , gets pushed to local VM as a
VMCachedDeserializable object & that should get persisted in the DiskRegion correctly. The value
when obtained from the disk ,locally , should be correctly obtained as ByteArrray.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DiskRegByteArrayDUnitTest.java