@Test
    void stopWithMultipleImagesIndexPatternMissingIndices(@Mock Container running1, @Mock Container running2, @Mock Container running3)
        throws IOException, MojoExecutionException, ExecException {
        givenProjectWithResolvedImage(singleImageWithBuild());

        givenAllContainersIsTrue();

        givenRunningContainer(running1, "container-id-1", "example-1");
        givenRunningContainer(running2, "container-id-2", "example-2");
        // having a gap in the numbering causes the enumeration of images to stop early
        givenRunningContainer(running3, "container-id-4", "example-4");
        givenContainersAreRunningForImage("example:latest", running1, running2, running3);

        whenMojoExecutes();

        thenContainerLookupByImageOccurs("example:latest");
        thenListContainersIsNotCalled();
        thenContainerIsNotStopped("container-id-1");
        thenContainerIsStopped("container-id-2", false, false);
        thenContainerIsStopped("container-id-4", 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 there's a gap, so the last before
the gap and all the ones after are stopped.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java