private int getExpectedSize(Object keys, String regEx, int numOfPuts) {
    return keys != null ? keys instanceof List ? ((List) keys).size() : 1
        : regEx == null ? numOfPuts : regexCount;
  }
Functional distributed tests for Register Interest with KEYS_VALUES policy.

<p>
TRAC #43684: Register interest with policy KEYS_VALUES is inefficient
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/RegisterInterestKeysValuesDistributedTest.java