@Test
public void inject_annotation_bypasses_resources()
{
ServiceBuilderMethodFixture fixture = new ServiceBuilderMethodFixture();
Method method = findMethod(fixture, "build_with_forced_injection");
ServiceBuilderResources resources = mockServiceBuilderResources();
Log log = mockLog();
fixture._expectedString = "Injected";
fixture._fie = mockFieService();
trainForConstructor(resources, log);
train_getModuleBuilder(resources, fixture);
train_isDebugEnabled(log, true);
log.debug(IOCMessages.invokingMethod(CREATOR_DESCRIPTION));
// This simulates what the real stack does when it sees @Value("Injected")
expect(resources.getObject(eq(String.class), isA(AnnotationProvider.class))).andReturn(
"Injected");
replay();
ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, method);