public void testServicePropertyObjectProvider()
{
MockControl mc = newControl(Module.class);
Module m = (Module) mc.getMock();
StringHolder h = new StringHolderImpl();
h.setValue("abracadabra");
m.getService("MyService", Object.class);
mc.setReturnValue(h);
replayControls();
ServicePropertyObjectProvider p = new ServicePropertyObjectProvider();
Object result = p.provideObject(m, String.class, "MyService:value", null);
assertEquals(h.getValue(), result);
verifyControls();
}