@Test
    void stopWithSingleImageAndContainerNamePatternSyntaxException()
        throws IOException, MojoExecutionException, ExecException {
        givenProjectWithResolvedImage(singleImageWithBuildAndStopNamePattern(" ,name= %regex[surprise! [], "));

        Assertions.assertThrows(MojoExecutionException.class, this::whenMojoExecutes);

        thenNoContainerLookupByImageOccurs();
        thenListContainersIsNotCalled();

        thenNoContainerIsStopped();
    }
Mock project with one image, query service indicates running image, but it is not labelled.
The stopNamePattern is set for container names only and does not match.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java