@Override
  public Object load(LoaderHelper helper) throws CacheLoaderException {

    /* checking the attributes set in xml file. */
    PartitionedRegion pr = (PartitionedRegion) helper.getRegion();
    if (pr.getAttributes().getPartitionAttributes().getRedundantCopies() != 1) {
      fail("Redundancy of the partition region is not 1");
    }

    assertEquals(pr.getAttributes().getPartitionAttributes().getLocalMaxMemory(), 200);

    /*
     * Returning the same key. This is to check CaccheLoader is invoked or not
     */
    return helper.getKey();
  }
This class is CacheLoader for partition region
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionCacheLoaderForRootRegion.java