@Test
 public void testHostPathVolume() {
   IHostPathVolumeProperties volume = new HostPathVolumeProperties("/tmp/dir");
   pv.setPersistentVolumeProperties(volume);
   volume = (IHostPathVolumeProperties) pv.getPersistentVolumeProperties();
   assertEquals("/tmp/dir", volume.getPath());
 }
 @Test
 public void testNFSVolume() {
   INfsVolumeProperties volume = new NfsVolumeProperties("10.10.10.10", "/tmp/dir", true);
   pv.setPersistentVolumeProperties(volume);
   volume = (INfsVolumeProperties) pv.getPersistentVolumeProperties();
   assertEquals("/tmp/dir", volume.getPath());
   assertEquals("10.10.10.10", volume.getServer());
   assertEquals(true, volume.isReadOnly());
 }