public static boolean verifyByteArray(Object ob) {
    boolean result = false;
    Object val = null;
    Arrays.fill(value, (byte) 77);
    // get from disk
    try {
      DiskId diskId = ((DiskEntry) (((LocalRegion) region).basicGetEntry(ob))).getDiskId();
      val = ((LocalRegion) region).getDiskRegion().get(diskId);
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Failed to get the value on disk");

    }
    assertTrue(
        "The value retrieved from disk is not a byte[] "
            + "or the length of byte[] is not equla to the length set while put",
        (((byte[]) val).length) == (value.length));


    byte[] x = null;
    x = (byte[]) val;

    for (int i = 0; i < x.length; i++) {
      result = (x[i] == value[i]);
      // System.out.println("*********"+result);
    }


    return result;

  }
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