@Test
public void testGetDefaultReferenceNameWhenDefinedInConfiguration()
{

    this.mockery.checking(new Expectations() {{
        oneOf(mockSource).getProperty(with(equal("model.reference.default.wiki")), with(any(String.class)));
            will(returnValue("defaultWiki"));
        oneOf(mockSource).getProperty(with(equal("model.reference.default.document")), with(any(String.class)));
            will(returnValue("defaultDocument"));
        oneOf(mockSource).getProperty(with(equal("model.reference.default.space")), with(any(String.class)));
            will(returnValue("defaultSpace"));
        oneOf(mockSource).getProperty(with(equal("model.reference.default.attachment")), with(any(String.class)));
            will(returnValue("defaultFilename"));
        oneOf(mockSource).getProperty(with(equal("model.reference.default.object")), with(any(String.class)));
            will(returnValue("defaultObject"));
        oneOf(mockSource).getProperty(with(equal("model.reference.default.object_property")), 
            with(any(String.class)));
            will(returnValue("defaultProperty"));
    }});
    
    Assert.assertEquals("defaultWiki", this.configuration.getDefaultReferenceValue(EntityType.WIKI));
    Assert.assertEquals("defaultDocument", this.configuration.getDefaultReferenceValue(EntityType.DOCUMENT));
    Assert.assertEquals("defaultSpace", this.configuration.getDefaultReferenceValue(EntityType.SPACE));
    Assert.assertEquals("defaultFilename", this.configuration.getDefaultReferenceValue(EntityType.ATTACHMENT));
    Assert.assertEquals("defaultObject", this.configuration.getDefaultReferenceValue(EntityType.OBJECT));
    Assert.assertEquals("defaultProperty", this.configuration.getDefaultReferenceValue(EntityType.OBJECT_PROPERTY));
}