public static void clearExistingProperties() {
        JiveGlobals.getXMLPropertyNames().stream()
            .filter(name -> !"setup".equals(name))
            .filter(name -> !"database.maxRetries".equals(name))
            .filter(name -> !"database.retryDelay".equals(name))
            .forEach(JiveGlobals::deleteXMLProperty);
        JiveGlobals.getPropertyNames()
            .forEach(JiveGlobals::deleteProperty);
    }
As {@link #reconfigureOpenfireHome()} allows properties to persist, this method clears all existing properties
(both XML and 'database') to ensure clean test output. Ideally should be called in a {@link org.junit.Before} method.
xmppserver/src/test/java/org/jivesoftware/Fixtures.java