@Test
public void testGetDefaultReferenceNameWhenNotDefinedInConfiguration()
{

    this.mockery.checking(new Expectations() {{
        oneOf(mockSource).getProperty("model.reference.default.wiki", "xwiki"); will(returnValue("xwiki"));
        oneOf(mockSource).getProperty("model.reference.default.document", "WebHome"); will(returnValue("WebHome"));
        oneOf(mockSource).getProperty("model.reference.default.space", "Main"); will(returnValue("Main"));
        oneOf(mockSource).getProperty("model.reference.default.attachment", "filename");
            will(returnValue("filename"));
        oneOf(mockSource).getProperty("model.reference.default.object", "object");
            will(returnValue("Main.WebHome"));
        oneOf(mockSource).getProperty("model.reference.default.object_property", "property");
            will(returnValue("property"));
    }});
    Assert.assertEquals("xwiki", this.configuration.getDefaultReferenceValue(EntityType.WIKI));
    Assert.assertEquals("WebHome", this.configuration.getDefaultReferenceValue(EntityType.DOCUMENT));
    Assert.assertEquals("Main", this.configuration.getDefaultReferenceValue(EntityType.SPACE));
    Assert.assertEquals("filename", this.configuration.getDefaultReferenceValue(EntityType.ATTACHMENT));
    Assert.assertEquals("Main.WebHome", configuration.getDefaultReferenceValue(EntityType.OBJECT));
    Assert.assertEquals("property", configuration.getDefaultReferenceValue(EntityType.OBJECT_PROPERTY));
}