.build());
VirtualDatacenterDto vdc = new VirtualDatacenterDto();
vdc.addLink(new RESTLink("volumes", "http://example.com/api/cloud/virtualdatacenters/1/volumes"));
VolumeOptions options = VolumeOptions.builder().startWith(1).build();
PaginatedCollection<VolumeManagementDto, VolumesManagementDto> templates = api.listVolumes(vdc, options);
assertEquals(templates.size(), 1);
assertEquals(templates.getTotalSize().intValue(), 2);
assertEquals(templates.get(0).getId().intValue(), 1531);