assertEquals(InstanceMode.PROVIDER, container.getInstanceMode());
}
@Test
public void simpleTypeWithProvider() {
TypeConfig config = defaultBinder.instance(TestImplementation1.class).with(new Provider<TestImplementation1>() {
@Override
public TestImplementation1 get() {
return new TestImplementation1();
}
}).build();
TypeContainer container;
container = config.getTypeContainer(null, TestImplementation1.class, null, null, null);
assertNotNull(container);
assertNotNull(container.getProvider());
assertFalse(container.isSingleton());
assertEquals(InstanceMode.PROVIDER, container.getInstanceMode());
}