@Test
    void testWithMultipleStopExceptions() throws DockerAccessException {
        GavLabel testLabel = new GavLabel("Im:A:Test");

        String firstName = "first-container:latest";
        ImageConfiguration first = new ImageConfiguration();
        first.setName(firstName);

        String secondName = "second-container:latest";
        ImageConfiguration second = new ImageConfiguration();
        second.setName(secondName);

        tracker.registerContainer(firstName, first, testLabel);
        tracker.registerContainer(secondName, second, testLabel);

        LogOutputSpecFactory logOutputSpecFactory = new LogOutputSpecFactory(true, true, null);

        Mockito.doThrow(new DockerAccessException("TEST one")).when(docker).stopContainer(firstName,0);
        Mockito.doThrow(new DockerAccessException("TEST two")).when(docker).stopContainer(secondName,0);

        runService = new RunService(docker, queryService, tracker, logOutputSpecFactory, log);

        Exception thrownException = Assertions.assertThrows(DockerAccessException.class, () -> runService.stopStartedContainers(false, true, true, testLabel));
        Assertions.assertEquals("(TEST two,TEST one)", thrownException.getLocalizedMessage());
    }
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