LOG.debug(" getResourceFromResponse: " + responseText);
representation = new XStreamRepresentation(xstream, responseText, mediaType);
// this
MirrorResourceListResponse resourceResponse =
(MirrorResourceListResponse) representation.getPayload(new MirrorResourceListResponse());
Assert.assertNotNull("Resource Response shouldn't be null", resourceResponse);
for (MirrorResource resource : resourceResponse.getData()) {
Assert.assertNotNull(resource.getId(), "Id shouldn't be null");
}
for (int i = 0; i < resourceResponse.getData().size(); i++) {
Assert.assertEquals(resourceRequest.getData().get(i).getUrl(),
resourceResponse.getData().get(i).getUrl());
}
return resourceResponse;
}