assertNull(container.getFactoryMethod());
}
@Test
public void usingCustomConstructor() {
TypeConfig config = defaultBinder.instance(TestImplementation1.class).as(TestImplementation1.class)
.using(constructor(TestImplementation1.class, String.class, String.class)).build();
TypeContainer container;
container = config.getTypeContainer(null, TestImplementation1.class, null, null, null);
assertNotNull(container);
assertEquals(TestImplementation1.class, container.getType());
assertFalse(container.isSingleton());
assertEquals(InstanceMode.CONSTRUCTOR, container.getInstanceMode());
assertEquals(constructor(TestImplementation1.class, String.class, String.class), container.getConstructor());