@Test
 public void testSetNewVRamSizeVmVideoCardPresent() throws Exception {
   when(vmMo3dgpu.getAllDeviceList()).thenReturn(Arrays.asList(videoCard, virtualDevice));
   _resource.setNewVRamSizeVmVideoCard(vmMo3dgpu, VRAM_MEMORY_SIZE, vmConfigSpec);
   verify(_resource)
       .modifyVmVideoCardVRamSize(videoCard, vmMo3dgpu, VRAM_MEMORY_SIZE, vmConfigSpec);
 }
 @Test
 public void testSetNewVRamSizeVmVideoCardNotPresent() throws Exception {
   when(vmMo3dgpu.getAllDeviceList()).thenReturn(Arrays.asList(virtualDevice));
   _resource.setNewVRamSizeVmVideoCard(vmMo3dgpu, VRAM_MEMORY_SIZE, vmConfigSpec);
   verify(_resource, never())
       .modifyVmVideoCardVRamSize(
           any(VirtualMachineVideoCard.class),
           eq(vmMo3dgpu),
           eq(VRAM_MEMORY_SIZE),
           eq(vmConfigSpec));
 }