/** Mock a VM in status Up */
 protected VM mockVmStatusUp() {
   vm.setStatus(VMStatus.Up);
   vm.setVmOs(8);
   vm.setId(vmId);
   vm.setRunOnVds(Guid.newGuid());
   when(vmDao.get(command.getParameters().getVmId())).thenReturn(vm);
   return vm;
 }
 /** The following method will create a VirtIO disk , which is marked as unplugged */
 protected void createVirtIODisk() {
   mockDiskImage(DiskInterface.VirtIO);
   command.getParameters().getDiskVmElement().setDiskInterface(DiskInterface.VirtIO);
 }
 /** The following method will create a disk which is not VirtIO */
 private void createNotVirtIODisk() {
   mockDiskImage(DiskInterface.IDE);
   command.getParameters().getDiskVmElement().setDiskInterface(DiskInterface.IDE);
 }