@Test
    void testVolumesDuringStart() throws DockerAccessException {
        ServiceHub hub = new ServiceHubFactory().createServiceHub(project, session, docker, log, new LogOutputSpecFactory(true, true, null));
        List<String> volumeBinds = Collections.singletonList("sqlserver-backup-dev:/var/opt/mssql/data");
        List<VolumeConfiguration> volumeConfigurations = Collections.singletonList(volumeConfiguration);

        List<String> createdVolumes = runService.createVolumesAsPerVolumeBinds(hub, volumeBinds, volumeConfigurations);

        Assertions.assertEquals(createdVolumes.get(0), volumeConfigurations.get(0).getName());
        Assertions.assertTrue(createdVolumes.contains(volumeConfigurations.get(0).getName()));
    }
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