public long getLocalSizeForTest() {
    if (dataStore == null) {
      return 0L;
    }
    long ret = 0L;
    Integer i;
    for (final Integer integer : dataStore.getSizeLocally().values()) {
      i = integer;
      ret += i;
    }
    return ret;
  }
Test Method: Get the number of entries in the local data store.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java