public void testGetPropertyForStringWhenExists() throws Exception
{
ConfigurationSource source = getComponentManager().lookup(ConfigurationSource.class, "space");
final DocumentReference webPreferencesReference = new DocumentReference("wiki", "space", "WebPreferences");
final DocumentReference currentDocument = new DocumentReference("wiki", "space", "page");
<BUG>mockery.checking(new Expectations() {{
</BUG>
allowing(bridge).getCurrentDocumentReference();
will(returnValue(currentDocument));
oneOf(bridge).getProperty(webPreferencesReference, webPreferencesReference, "key");

public void testGetPropertyForStringWhenExists() throws Exception
{
ConfigurationSource source = getComponentManager().lookup(ConfigurationSource.class, "space");
final DocumentReference webPreferencesReference = new DocumentReference("wiki", "space", "WebPreferences");
final DocumentReference currentDocument = new DocumentReference("wiki", "space", "page");
getMockery().checking(new Expectations() {{
allowing(bridge).getCurrentDocumentReference();
will(returnValue(currentDocument));
oneOf(bridge).getProperty(webPreferencesReference, webPreferencesReference, "key");
