@Test
public void testResolveObjectPropertyReferenceWhenMissingParents()
{

    EntityReference reference =
        resolver.resolve(new EntityReference("property", EntityType.OBJECT_PROPERTY), EntityType.OBJECT_PROPERTY);
    Assert.assertEquals(EntityType.OBJECT_PROPERTY, reference.getType());
    Assert.assertEquals("property", reference.getName());        
    Assert.assertEquals(EntityType.OBJECT, reference.getParent().getType());
    Assert.assertEquals("defobject", reference.getParent().getName());
    Assert.assertEquals(EntityType.DOCUMENT, reference.getParent().getParent().getType());
    Assert.assertEquals("defpage", reference.getParent().getParent().getName());
    Assert.assertEquals(EntityType.SPACE, reference.getParent().getParent().getParent().getType());
    Assert.assertEquals("defspace", reference.getParent().getParent().getParent().getName());
    Assert.assertEquals(EntityType.WIKI, reference.getParent().getParent().getParent().getParent().getType());
    Assert.assertEquals("defwiki", reference.getParent().getParent().getParent().getParent().getName());
}