@Test
   void testCreateVolume() throws Exception {
      VolumeConfiguration vc = new VolumeConfiguration.Builder()
                                     .name("testVolume")
                                     .driver("test").opts(withMap("opts"))
                                     .labels(withMap("labels"))
                                     .build();

      Mockito.doReturn("testVolume")
          .when(docker).createVolume(Mockito.any(VolumeCreateConfig.class));

      Assertions.assertEquals("testVolume", vc.getName());
      String name = new VolumeService(docker).createVolume(vc);
      Assertions.assertEquals("testVolume", name);
   }
Basic Unit Tests for {@link VolumeService}

 @author Tom Burton
 @version Dec 16, 2016
src/test/java/io/fabric8/maven/docker/service/VolumeServiceTest.java