@Test
  public void testClientRegisterInterests() {

    try (ClientCache clientCache = setupGemFireClientCache()) {
      Region<String, String> example = clientCache.getRegion(SEPARATOR + "Example");

      assertThat(example).describedAs("'Example' Region in Client Cache was not found!")
          .isNotNull();
      assertThat(example).containsOnly(entry("1", "ONE"));
      assertThat(entryEvents).isEmpty();

      String value = put();

      assertThat(value).isEqualTo("TWO");

      waitOnEvent();

      assertThat(entryEvents).isNotEmpty();

      EntryEvent<String, String> entryEvent = entryEvents.pop();

      assertThat(entryEvent.getKey()).isEqualTo("2");
      assertThat(entryEvent.getNewValue()).isEqualTo("TWO");
      assertThat(entryEvent.getOldValue()).isNull();
      assertThat(example).hasSize(2);
      assertThat(example).contains(entry("2", "TWO"));
    }
  }
The ClientServerRegisterInterestsDUnitTest class is a test suite of test cases testing the
interaction between a client and a server in a Register Interests scenario.

@since GemFire 8.0
geode-core/src/distributedTest/java/org/apache/geode/cache/client/ClientServerRegisterInterestsDUnitTest.java