@Test
  public void remotePRValuesShouldNotBeDeserialized() throws Exception {
    PartitionAttributesFactory partitionAttributesFactory = new PartitionAttributesFactory();
    partitionAttributesFactory.setRedundantCopies(0);
    partitionAttributesFactory.setLocalMaxMemory(0); // make it an accessor

    AttributesFactory factory = new AttributesFactory();
    factory.setPartitionAttributes(partitionAttributesFactory.create());

    Region<String, HomeBoy> region = createRootRegion(REGION_NAME, factory.create());

    doCreateOtherVm(otherVM);

    region.put("key1", new HomeBoy());

    assertTrue(region.get("key1") instanceof HomeBoy);
  }
Make sure that value is only deserialized in cache whose application asks for the value.
geode-core/src/distributedTest/java/org/apache/geode/cache30/RemotePRValuesAreNotDeserializedRegressionTest.java