@Test
  public void testValidEdit() throws CommandException, ApplicationErrorException {
    String commandArgs = "vmid1 \'New name\' 536870912 1";
    String id = "vmid1";
    String name = "New name";
    long memory = 536870912;
    int numberOfCPU = 1;

    command.proceed(commandArgs, record, logger);

    assertTrue(record.containsID(id));

    assertEquals(name, record.getVMRecord(id).getVM().getName());
    assertEquals(memory, record.getVMRecord(id).getVM().getMemory());
    assertEquals(numberOfCPU, record.getVMRecord(id).getVM().getNumberOfCPU());
  }
  @Before
  public void setUp() throws Exception {
    command = new EditVMCommand();
    record = new ESXRecord(new ESX());
    logger = ConsoleLogger.getInstance();

    VirtualMachine vmOne = new VirtualMachine("vmid1", "vm One", 0, 0);
    VirtualMachine vmTwo = new VirtualMachine("vmid2", "vm Two", 2, 2);

    VirtualMachineRecord vmRecordOne = new VirtualMachineRecord(vmOne);
    VirtualMachineRecord vmRecordTwo = new VirtualMachineRecord(vmTwo);

    record.addRecord(vmRecordOne);
    record.addRecord(vmRecordTwo);
  }