@Test
  public void testInterestRegistrationOnBothPrimaryAndSecondary() throws Exception {
    createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));
    createEntriesK1andK2();
    server1.invoke(HAInterestTestCase::createEntriesK1andK2);
    server2.invoke(HAInterestTestCase::createEntriesK1andK2);
    server3.invoke(HAInterestTestCase::createEntriesK1andK2);
    // register K1 and K2
    registerK1AndK2();
    server1.invoke(HAInterestTestCase::verifyInterestRegistration);
    server2.invoke(HAInterestTestCase::verifyInterestRegistration);
    server3.invoke(HAInterestTestCase::verifyInterestRegistration);
  }
Tests whether interest is registered or not on both primary and secondaries
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/HAInterestPart1DUnitTest.java