@Test
public void testGetRoot()
{

    EntityReference reference = new EntityReference("page", EntityType.DOCUMENT,
        new EntityReference("space", EntityType.SPACE,
            new EntityReference("wiki", EntityType.WIKI)));
    Assert.assertEquals(new EntityReference("wiki", EntityType.WIKI), reference.getRoot());
}