private void givenARunConfiguration() {
        runConfig =
            new RunImageConfiguration.Builder()
                .hostname("hostname")
                .domainname("domain.com")
                .user("user")
                .shmSize(1024L)
                .memory(1L)
                .memorySwap(1L)
                .cpus(1.5)
                .cpuSet("0,1")
                .isolation("default")
                .cpuShares(1L)
                .env(env())
                .cmd("date")
                .entrypoint(new Arguments("entrypoint"))
                .extraHosts(extraHosts())
                .ulimits(ulimits())
                .workingDir("/foo")
                .ports(ports())
                .links(links())
                .volumes(volumeConfiguration())
                .healthcheck(healthCheckConfiguration())
                .dns(dns())
                .dnsSearch(dnsSearch())
                .privileged(true)
                .capAdd(capAdd())
                .capDrop(capDrop())
                .sysctls(sysctls())
                .securityOpts(securityOpts())
                .restartPolicy(restartPolicy())
                .net("custom_network")
                .network(networkConfiguration())
                .readOnly(false)
                .autoRemove(false)
                .build();
    }
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