expect(op.getPropertyType("fred")).andReturn(Map.class);
op.claimReadonlyProperty("fred");
expect(p.obtainValue("service:barney", l)).andReturn(new HashMap());
expect(op.addInjectedField("_$fred", Map.class, injectedValue)).andReturn("_$fred");
op.addMethod(Modifier.PUBLIC, new MethodSignature(Map.class, "getFred", null,
null), "return _$fred;", l);