public class DefaultInjectionProviderTest extends InternalBaseTestCase
{
@Test
public void object_found()
{
MasterObjectProvider master = mockMasterObjectProvider();
ObjectLocator locator = mockObjectLocator();
ClassTransformation ct = mockClassTransformation();
MutableComponentModel model = mockMutableComponentModel();
Request injected = mockRequest();
expect(master.provide(eq(Request.class), isA(AnnotationProvider.class), eq(locator), eq(false))).andReturn(
injected);
ct.injectField("myfield", injected);
replay();