assertPayloadEquals(request.getPayload(), withHeader("<links><link href=\"" + hardDisk.getEditLink().getHref()
+ "\" rel=\"" + binder.getRelToUse(hardDisk) + "\"/></links>"), LinksDto.class);
}
public void testBindMultipleHardDisks() throws IOException {
DiskManagementDto hardDisk = CloudResources.hardDiskPut();
BindHardDiskRefsToPayload binder = new BindHardDiskRefsToPayload(new JAXBParser("false"));
HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();
request = binder.bindToRequest(request, new DiskManagementDto[] { hardDisk, hardDisk });
assertPayloadEquals(request.getPayload(), withHeader("<links><link href=\"" + hardDisk.getEditLink().getHref()
+ "\" rel=\"" + binder.getRelToUse(hardDisk) + "\"/></links>"), LinksDto.class);
}