@Test
    void testWithException() throws DockerAccessException {
        Mockito.doThrow(new DockerAccessException("Test")).when(docker).stopContainer(container, 0);
        ImageConfiguration imageConfig = createImageConfig(SHUTDOWN_WAIT, 0);
        Assertions.assertThrows(DockerAccessException.class, () -> runService.stopContainer(container, imageConfig, false, 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