@Test
    void stopWithMultipleImagesNoIndexNamePattern(@Mock Container running1, @Mock Container running2, @Mock Container running3)
        throws IOException, MojoExecutionException, ExecException {
        this.consoleLogger.setThreshold(0);
        givenProjectWithResolvedImage(singleImageWithBuild());

        givenAllContainersIsTrue();

        givenRunningContainer(running1, "container-id-1", "example");
        givenRunningContainer(running2, "container-id-2", "example-2");
        givenRunningContainer(running3, "container-id-3", "example-3");
        givenContainersAreRunningForImage("example:latest", running1, running2, running3);

        // If name pattern doesn't contain index placeholder then matching containers are stopped
        stopMojo.containerNamePattern= "%n";

        whenMojoExecutes();

        thenContainerLookupByImageOccurs("example:latest");
        thenListContainersIsNotCalled();
        thenContainerIsStopped("container-id-1", false, false);
        thenContainerIsNotStopped("container-id-2");
        thenContainerIsNotStopped("container-id-3");
    }
Mock project with one image, query service indicates three running images, none labelled,
but allContainers is true.
<p>
One container matches the name pattern and the others not, so that not all containers are stopped.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java