@Test
    public void substitutedExample() {
        try (
            // spotless:off
            // hardcodedMirror {
            // Referring directly to an image on a private registry - image name will vary
            final MySQLContainer<?> mysql = new MySQLContainer<>(
                DockerImageName.parse("registry.mycompany.com/mirror/mysql:8.0.36")
                    .asCompatibleSubstituteFor("mysql")
            )
            // start the container and use it for testing
            // }
            // spotless:on
        ) {
            mysql.start();
        }
    }
Note that this test uses a fake image name, which will only work because
{@link TestSpecificImageNameSubstitutor} steps in to override the substitution for this exact
image name.
docs/examples/junit4/generic/src/test/java/generic/ImageNameSubstitutionTest.java