private void doRegisterInterest(Object keys, String regEx, int numOfPuts) {
    server1.invoke(() -> doPuts(numOfPuts, regEx, regexCount));

    client1.invoke(() -> createClientCache(port1));
    client1.invoke(() -> registerInterest(keys, regEx));

    server1.invoke(() -> cache().close());

    // int size = getExpectedSize(keys, regEx, numOfPuts);
    client1.invoke(() -> verifyResponse(getExpectedSize(keys, regEx, numOfPuts)));
  }
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