@Test
public void adaptPageFromContentTest() throws Exception {

    Resource pageResource = createPageResource(null, "resource-2");
    Resource jcrContent = createResource(pageResource, JCR_CONTENT, PAGE_CONTENT_TYPE);
    PeregrineAdapterFactory factory = new PeregrineAdapterFactory();
    PerPage page = factory.getAdapter(jcrContent, PerPage.class);
    assertNotNull("Page Content could not be adapted", page);
    checkPage("Adapted Page Resource is not what was excepted", pageResource, page);
}