private void verifyListImages(int wantedNumberOfInvocations) throws DockerAccessException {
        Mockito.verify(queryService, Mockito.times(wantedNumberOfInvocations))
            .listImages(Mockito.anyBoolean());
    }
Mock project with one image that is removed by pattern
src/test/java/io/fabric8/maven/docker/RemoveMojoTest.java