@Override
        protected void append(ILoggingEvent eventObject) {
            if (eventObject.getLevel().equals(Level.WARN)) {
                if (
                    eventObject
                        .getMessage()
                        .equals("Your provided admin password is too short and will not work with Neo4j 5.3+.")
                ) {
                    passwordTooShortWarningAppeared = true;
                }
            }
        }
Tests of functionality special to the Neo4jContainer.
modules/neo4j/src/test/java/org/testcontainers/containers/Neo4jContainerTest.java