@Test
   void testRemoveVolume() 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));

      VolumeService volumeService = new VolumeService(docker);
      String name = volumeService.createVolume(vc);
      volumeService.removeVolume(name);

      Mockito.verify(docker).removeVolume("testVolume");
   }
Basic Unit Tests for {@link VolumeService}

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