@Test
    void stopWithMatchingStopNamePatternButNoImages() throws IOException, MojoExecutionException, ExecException {
        givenMavenProject();
        givenStopNamePattern("**/example:*");

        givenRunningContainer("container-id", "example-1", "example:latest");
        givenContainerHasGavLabels();
        givenListOfRunningContainers();

        whenMojoExecutes();

        thenNoContainerLookupByImageOccurs();
        thenListContainersIsCalled();
        thenContainerIsStopped("container-id", false, false);
    }
Mock project with no images, but stopNamePattern is set, so a container is stopped.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java