ObjectLocator locator = mockObjectLocator();
InjectionProvider ip = newMock(InjectionProvider.class);
Inject annotation = newInject();
ClassTransformation ct = mockClassTransformation();
MutableComponentModel model = mockMutableComponentModel();
TransformField field = newMock(TransformField.class);
train_matchFields(ct, field);
train_getName(field, "myfield");
train_getAnnotation(field, Inject.class, annotation);
train_getType(field, REQUEST_CLASS_NAME);
train_toClass(ct, REQUEST_CLASS_NAME, Request.class);
train_provideInjection(ip, "myfield", Request.class, locator, ct,
model, true);
field.claim(annotation);
replay();
ComponentClassTransformWorker worker = new InjectWorker(locator, ip,
new QuietOperationTracker());