### Question:
AssociationInjector implements AssociationListener<T> { public void setBackend(Object target) { this.target = target; } AssociationInjector(Object target); void setBackend(Object target); void setCallerClassLoader(ClassLoader callerCL); void terminate(); Map<AssociationDescriptor, Long> getInvocationMap(); void injectEmpty(Association<T> association); void discovered(Association<T> association, T service); void changed(Association<T> association, T service); void broken(Association<T> association, T service);  }### Answer:
@Test public void testEagerInjection() { DefaultAssociationManagement aMgr = new DefaultAssociationManagement(); Target5 target = new Target5(); aMgr.setBackend(target); AssociationDescriptor descriptor = createAssociationDescriptor(); descriptor.setLazyInject(false); Association<Dummy> a = aMgr.addAssociationDescriptor(descriptor); Assert.assertTrue(target.injectedCount==1); Assert.assertNotNull(target.dummy); Assert.assertEquals(Association.State.PENDING, target.dummy.getState()); }