@Test
    public void runPasswordTests() {
        try {
            new MSSQLServerContainer<>(MSSQLServerTestImages.MSSQL_SERVER_IMAGE).withPassword(this.password);
            if (!valid) {
                fail("Password " + this.password + " is not valid. Expected exception");
            }
        } catch (IllegalArgumentException e) {
            if (valid) {
                fail("Password " + this.password + " should have been validated");
            }
        }
    }
Tests if the password passed to the container satisfied the password policy described at
https://docs.microsoft.com/en-us/sql/relational-databases/security/password-policy?view=sql-server-2017
modules/mssqlserver/src/test/java/org/testcontainers/junit/mssqlserver/CustomPasswordMSSQLServerTest.java