@Test
    void stopWithMultipleImagesContainerNameRegexPattern(@Mock Container running1, @Mock Container running2, @Mock Container running3)
        throws IOException, MojoExecutionException, ExecException {
        givenProjectWithResolvedImage(singleImageWithBuildAndStopNamePattern("%regex[example-[13]]"));

        givenAllContainersIsTrue();

        givenRunningContainer(running1, "container-id-1", "example-1", "example:v1");
        givenRunningContainer(running2, "container-id-2", "example-2", "example:v2");
        givenRunningContainer(running3, "container-id-3", "example-3", "example:v3");
        givenListOfRunningContainers(running1, running2, running3);

        whenMojoExecutes();

        thenNoContainerLookupByImageOccurs();
        thenListContainersIsCalled();
        thenContainerIsStopped("container-id-1", false, false);
        thenContainerIsNotStopped("container-id-2");
        thenContainerIsStopped("container-id-3", false, false);
    }
Mock project with one image, query service indicates three running images, none labelled,
but allContainers is true.
<p>
The containers are named with ascending indices, but pattern matching is in effect, so
two of them are stopped.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java