@Override
  public Object getValueOnDiskOrBuffer(Object key) throws EntryNotFoundException {
    final int bucketId = PartitionedRegionHelper.getHashKey(this, null, key, null, null);
    if (dataStore == null) {
      throw new EntryNotFoundException(key.toString());
    }
    return dataStore.getLocalValueOnDiskOrBuffer(key, bucketId);
  }
This method is intended for testing purposes only.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java