public void anonymous_injection()
{
ObjectLocator locator = mockObjectLocator();
InjectionProvider ip = newMock(InjectionProvider.class);
Inject annotation = newInject();
ClassTransformation ct = mockClassTransformation();
MutableComponentModel model = mockMutableComponentModel();
train_findFieldsWithAnnotation(ct, Inject.class, "myfield");
train_getFieldAnnotation(ct, "myfield", Inject.class, annotation);
train_getFieldType(ct, "myfield", REQUEST_CLASS_NAME);
train_toClass(ct, REQUEST_CLASS_NAME, Request.class);
train_provideInjection(ip, "myfield", Request.class, locator, ct, model, true);
ct.claimField("myfield", annotation);
replay();
ComponentClassTransformWorker worker = new InjectWorker(locator, ip, new QuietOperationTracker());