@Test
public void testGetLastSpaceReferenceWhenOneSpace()
{

    DocumentReference documentReference = new DocumentReference("wiki", "space", "page");
    SpaceReference spaceReference = documentReference.getLastSpaceReference();
    Assert.assertEquals(new SpaceReference("space", new WikiReference("wiki")), spaceReference);
}