@Ignore("TODO")
  @Test
  public void testListener() throws CacheException, InterruptedException {

    String exceptions = Error.class.getName();
    try {
      String name = "testListener";
      doExec("setListener1");

      doMessage("<ExpectedException action=add>" + exceptions + "</ExpectedException>");
      doCreateEntry(name);

      Integer count = (Integer) doExec("getListenerCount");
      assertEquals(1, count.intValue());
      doVerifyDisconnected();
    } finally {
      doMessage("<ExpectedException action=remove>" + exceptions + "</ExpectedException>");
      resetVM();
    }

  }
Verify that listener gets called, and exactly once.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/SystemFailureDUnitTest.java