@Test
    void testCreateContainerAllConfig() throws IOException {
        /*-
         * this is really two tests in one
         *  - verify the start dockerRunner calls all the methods to build the container configs
         *  - the container configs produce the correct json when all options are specified
         *
         * it didn't seem worth the effort to build a separate test to verify the json and then mock/verify all the calls here
         */

        Mockito.doReturn("db1").when(queryService).getContainerName("redisContainer1");
        Mockito.doReturn("db2").when(queryService).getContainerName("redisContainer2");
        Mockito.doReturn("parentContainer").when(queryService).getContainerName("parentContainer");
        Mockito.doReturn("otherContainer").when(queryService).getContainerName("otherContainer");

        givenARunConfiguration();
        givenAnImageConfiguration("redis3", "db1", "redisContainer1");
        givenAnImageConfiguration("redis3", "db2", "redisContainer2");

        givenAnImageConfiguration("parent", "parentName", "parentContainer");
        givenAnImageConfiguration("other_name", "other:ro", "otherContainer");

        whenCreateContainerConfig("base");

        thenContainerConfigIsValid();
        thenStartConfigIsValid();
    }
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