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

        whenMojoExecutes();

        thenNoContainerLookupByImageOccurs();
        thenListContainersIsCalled();
        thenNoContainerIsStopped();
    }
Mock project with no images, but stopNamePattern is set, so containers are checked.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java