@Test
public void testResolveDocumentReferenceWhenMissingParentBetweenReferences()
{

    EntityReference reference = resolver.resolve(new EntityReference("page", EntityType.DOCUMENT,
        new EntityReference("wiki", EntityType.WIKI)), EntityType.DOCUMENT);
    Assert.assertEquals("defspace", reference.getParent().getName());
    Assert.assertEquals(EntityType.SPACE, reference.getParent().getType());
    Assert.assertEquals("wiki", reference.getParent().getParent().getName());
    Assert.assertEquals(EntityType.WIKI, reference.getParent().getParent().getType());
}