@Test
    void stopWithSingleImageAndImagePatternSyntaxException() throws IOException, MojoExecutionException, ExecException {
        givenProjectWithResolvedImage(singleImageWithBuildAndStopNamePattern(" , image=%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 images only and does not match.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java