private void givenListOfRunningContainers(Container... instances) throws DockerAccessException {
        Mockito.doReturn(instances.length == 0 ? Collections.singletonList(runningInstance) : Arrays.asList(instances))
            .when(queryService).listContainers(Mockito.anyBoolean());
    }
Mock project with one image, query service indicates three running images, none labelled,
but allContainers is true.
<p>
The containers are named with ascending indices, but pattern matching is in effect, so
two of them are stopped.
src/test/java/io/fabric8/maven/docker/StopMojoTest.java