@Test
    void removeNullWithOneRunImage() throws IOException, MojoExecutionException {
        givenProjectWithResolvedImage(singleImageWithRun());

        givenRemoveMode(null);

        givenHasImage("example:latest");

        whenMojoExecutes();

        thenRemoveImageIsNotCalled();
        thenListImagesIsNotCalled();
    }
Mock project with one build image that is removed
src/test/java/io/fabric8/maven/docker/RemoveMojoTest.java