getMethod = executeGet(pageHistoryUri);
Assert.assertEquals(getHttpMethodInfo(getMethod), HttpStatus.SC_OK, getMethod.getStatusCode());
History history = (History) unmarshaller.unmarshal(getMethod.getResponseBodyAsStream());
HistorySummary firstVersion = null;
for (HistorySummary historySummary : history.getHistorySummaries()) {
if ("1.1".equals(historySummary.getVersion())) {
firstVersion = historySummary;
}
getMethod = executeGet(getFirstLinkByRelation(historySummary, Relations.PAGE).getHref());
Assert.assertEquals(getHttpMethodInfo(getMethod), HttpStatus.SC_OK, getMethod.getStatusCode());
Page page = (Page) unmarshaller.unmarshal(getMethod.getResponseBodyAsStream());
checkLinks(page);
for (Translation translation : page.getTranslations().getTranslations()) {
checkLinks(translation);
}
}
Assert.assertNotNull(firstVersion);
Assert.assertEquals("Imported from XAR", firstVersion.getComment());
}