IMachine registeredMachine = createMock(IMachine.class);
IProgress progress = createNiceMock(IProgress.class);
List<IMedium> media = Lists.newArrayList();
List<IMedium> mediums = Collections.unmodifiableList(media);
StorageController ideController = StorageController.builder().name(ideControllerName).bus(StorageBus.IDE)
.attachISO(0, 0, "/tmp/ubuntu-11.04-server-i386.iso")
.attachHardDisk(HardDisk.builder().diskpath("/tmp/testadmin.vdi").controllerPort(0).deviceSlot(1).build())
.attachISO(1, 1, "/tmp/VBoxGuestAdditions_4.1.2.iso").build();
VmSpec vmSpecification = VmSpec.builder().id(vmId).name(vmName).memoryMB(512).osTypeId(osTypeId)
.controller(ideController).forceOverwrite(true).cleanUpMode(CleanupMode.Full).build();