.build());
VirtualDatacenterDto vdc = new VirtualDatacenterDto();
vdc.addLink(new RESTLink("topurchase", "http://localhost/api/cloud/virtualdatacenters/1/publicips/topurchase"));
IpOptions options = IpOptions.builder().startWith(3).build();
PaginatedCollection<PublicIpDto, PublicIpsDto> ips = api.listAvailablePublicIps(vdc, options);
assertEquals(ips.size(), 2);
assertEquals(ips.getTotalSize().intValue(), 4);
assertEquals(ips.get(0).getId().intValue(), 3);