private String verifyLog(String mode) {
        ArgumentCaptor<String> formatCaptor = ArgumentCaptor.forClass(String.class);
        ArgumentCaptor<Object> argsCaptor = ArgumentCaptor.forClass(Object.class);
        Mockito.verify(log).info(formatCaptor.capture(), argsCaptor.capture());

        Assertions.assertTrue(formatCaptor.getValue().contains(mode));
        List<Object> args = argsCaptor.getAllValues();
        Assertions.assertEquals(container.substring(0, 12), args.get(2));
        return (String)args.get(1);
    }
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