"Virtual Hardware Family").virtualSystemIdentifier("eduardo").virtualSystemType("vmx-07").build();
assertEquals(vApp.getSystem().toString(), system.toString());
assertEquals(vApp.getNetworkToAddresses().get("Internal"), ImmutableList.of("10.114.34.131"));
ResourceAllocationSettingData cpu = ResourceAllocationSettingData.builder().instanceID("1").elementName(
"2 virtual CPU(s)").description("Number of Virtual CPUs").resourceType(ResourceType.PROCESSOR)
.virtualQuantity(2l).virtualQuantityUnits("hertz * 10^6").build();
ResourceAllocationSettingData controller = ResourceAllocationSettingData.builder().instanceID("3").elementName(
"SCSI Controller 0").description("SCSI Controller").resourceType(ResourceType.PARALLEL_SCSI_HBA)
.resourceSubType("lsilogic").address("0").virtualQuantity(1l).build();
ResourceAllocationSettingData memory = ResourceAllocationSettingData.builder().instanceID("2").elementName(
"1024MB of memory").description("Memory Size").resourceType(ResourceType.MEMORY).virtualQuantity(1024l)
.virtualQuantityUnits("byte * 2^20").build();
ResourceAllocationSettingData disk = ResourceAllocationSettingData.builder().instanceID("9").elementName(
"Hard Disk 1").resourceType(ResourceType.DISK_DRIVE).hostResource("4194304").addressOnParent("0")
.virtualQuantity(4194304l).virtualQuantityUnits("byte * 2^20").build();
ResourceAllocationSettingData disk2 = ResourceAllocationSettingData.builder().instanceID("9").elementName(
"Hard Disk 2").resourceType(ResourceType.DISK_DRIVE).hostResource("26214400").addressOnParent("1")
.virtualQuantity(26214400l).virtualQuantityUnits("byte * 2^20").build();
assertEquals(vApp.getResourceAllocations(), ImmutableSet.of(cpu, memory, controller, disk, disk2));
assertEquals(find(vApp.getResourceAllocations(), CIMPredicates.resourceTypeIn(ResourceType.PROCESSOR))