VirtualApplianceDto vapp = new VirtualApplianceDto();
vapp.addLink(new RESTLink("virtualmachines",
"http://localhost/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines"));
VirtualMachineOptions options = VirtualMachineOptions.builder().startWith(2).build();
PaginatedCollection<VirtualMachineWithNodeExtendedDto, VirtualMachinesWithNodeExtendedDto> vms = api
.listVirtualMachines(vapp, options);
assertEquals(vms.size(), 1);
assertEquals(vms.getTotalSize().intValue(), 2);