Location l = newLocation();
EnhancementOperation op = newOp();
IComponentSpecification spec = newSpec();
InjectObjectWorker delegate = org.easymock.classextension.EasyMock.createNiceMock(InjectObjectWorker.class);
InjectedValueProvider provider = newMock(InjectedValueProvider.class);
delegate.setProvider(provider);
replay();
org.easymock.classextension.EasyMock.replay(delegate);
InjectObjectAnnotationWorker worker = new InjectObjectAnnotationWorker(delegate);
worker.setProvider(provider);
verify();
org.easymock.classextension.EasyMock.verify(delegate);
Method m = findMethod(AnnotatedPage.class, "getInjectedObject");
delegate.injectObject(op, "barney", "injectedObject", l);
replay();
worker.performEnhancement(op, spec, m, l);