@Test
public void testSerializeReferenceWithChild() 
{

    EntityReference reference = resolver.resolve("wiki:Space.Page", EntityType.DOCUMENT);
    Assert.assertEquals("wiki:Space", serializer.serialize(reference.getParent()));
    
    Assert.assertEquals("wiki", serializer.serialize(reference.getParent().getParent()));
}