@Test
public void inject_annotation_bypasses_resources()
{
ServiceBuilderMethodFixture fixture = new ServiceBuilderMethodFixture();
Method method = findMethod(fixture, "build_with_forced_injection");
ServiceBuilderResources resources = mockServiceBuilderResources();
Logger logger = mockLogger();
fixture._expectedString = "Injected";
fixture._fie = mockFieService();
trainForConstructor(resources, logger);
train_getModuleBuilder(resources, fixture);
train_isDebugEnabled(logger, true);
logger.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);