@Test
    void shutdownWithoutKeepingContainers() throws DockerAccessException, ExecException {
        long start = System.currentTimeMillis();
        runService.stopContainer(container, createImageConfig(SHUTDOWN_WAIT, 0), false, false);
        Assertions.assertTrue(System.currentTimeMillis() - start >= SHUTDOWN_WAIT, "Waited for at least " + SHUTDOWN_WAIT + " ms");
        verifyStopAndRemove(0, false);
    }
This test need to be refactored. In fact, testing Mojos must be setup correctly at all. Blame on me that there are so
few tests ...
src/test/java/io/fabric8/maven/docker/service/RunServiceTest.java