@Test
  public void testBug35358() {
    Host host = Host.getHost(0);
    LogWriter logger = getSystem().getLogWriter();
    logger.fine("testBug35358 BEGIN");
    Object[] objArr = new Object[2];
    objArr[0] = InterestResultPolicy.KEYS;
    /* registering for 5 extra keys */
    objArr[1] = PREPOPULATED_ENTRIES + 5;
    vm1.invoke(() -> InterestResultPolicyDUnitTest
        .createClientCache(NetworkUtils.getServerHostName(host), PORT));
    vm1.invoke(InterestResultPolicyDUnitTest.class, "registerInterest", objArr);
    vm1.invoke(InterestResultPolicyDUnitTest.class, "verifyResult", objArr);
    Integer cnt = (Integer) vm0.invoke(InterestResultPolicyDUnitTest::getEntryCount);
    assertEquals(cnt.intValue(), PREPOPULATED_ENTRIES);
    logger.fine("testBug35358 END");
  }
This test does the following<br>
1)Create client cache and region<br>
2)Call registerInterest with specific keys (having extra keys other than those pre-populated on
server cache) and policy:KEYS<br>
3)At the end of registerInterest call, verify that only prepolulated entries are created in the
client cache with null values (entries for keys in the keylist which are not on the server
should not be created on the client as a result of registerInterest call)<br>
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/InterestResultPolicyDUnitTest.java