@Test
    public void shouldWarnOnPasswordTooShort() {
        try (Neo4jContainer<?> neo4jContainer = new Neo4jContainer<>("neo4j:4.4");) {
            Logger logger = (Logger) DockerLoggerFactory.getLogger("neo4j:4.4");
            TestLogAppender testLogAppender = new TestLogAppender();
            logger.addAppender(testLogAppender);
            testLogAppender.start();

            neo4jContainer.withAdminPassword("short");

            testLogAppender.stop();

            assertThat(testLogAppender.passwordTooShortWarningAppeared).isTrue();
        }
    }
Tests of functionality special to the Neo4jContainer.
modules/neo4j/src/test/java/org/testcontainers/containers/Neo4jContainerTest.java