assertEquals(factoryMethod(TestImplementation1.class, "instance1"), container.getFactoryMethod());
}
@Test
public void singletonUsingNamedStaticFactoryMethodWithParameters() {
TypeConfig config = defaultBinder.instance(TestImplementation1.class).asSingleton(TestImplementation1.class)
.using(factoryMethod(TestImplementation1.class, "instance2", String.class, String.class)).build();
TypeContainer container;
container = config.getTypeContainer(null, TestImplementation1.class, null, null, null);
assertNotNull(container);
assertEquals(TestImplementation1.class, container.getType());
assertTrue(container.isSingleton());
assertEquals(InstanceMode.FACTORY_METHOD, container.getInstanceMode());
assertNull(container.getConstructor());