@Test
    void removeWithEmptyRemovePatternsAndNoImages() throws IOException, MojoExecutionException {
        givenMavenProject();
        givenRemoveNamePattern(" , , ");
        givenListOfImageNames("example:latest");

        whenMojoExecutes();

        thenListImagesIsNotCalled();
        thenRemoveImageIsNotCalledFor("example:latest");
    }
Mock project with no images, and an empty set of patterns is provided.
src/test/java/io/fabric8/maven/docker/RemoveMojoTest.java