@Test
public void testTwoParamCtInjection() throws Exception
{
startContainer(BeanWithTwoParamInjectConstructor.class, User.class, Administrator.class);
BeanWithTwoParamInjectConstructor instance = getInstance(BeanWithTwoParamInjectConstructor.class);
Assert.assertNotNull(instance);
Assert.assertNotNull(instance.getUser());
Assert.assertNotNull(instance.getAdministrator());
User user = getInstance(User.class);
Assert.assertNotNull(user);
Assert.assertTrue(user.getSelf() == instance.getUser().getSelf());
Administrator administrator = getInstance(Administrator.class);
Assert.assertNotNull(administrator);
Assert.assertTrue(administrator.getSelf() == instance.getAdministrator().getSelf());
}