private void checkAndAssert(int code, EnumListenerEvent event) {
    EnumListenerEvent localEvent = EnumListenerEvent.getEnumListenerEvent(code);
    assertTrue(localEvent == event);
    if (localEvent != null) {
      assertTrue(localEvent.getEventCode() == code);
    }
  }
tests whether EnumListenerEvent.getEnumListenerEvent(int cCode) returns the right result
geode-core/src/test/java/org/apache/geode/internal/cache/EnumListenerEventJUnitTest.java