@SuppressWarnings("unchecked")
@Test
public void xorNonConfirming() {
TypeConfig config = defaultBinder.instance(TestInterface.class).as(TestImplementation1.class).when((BindingCondition<TestInterface>) confirming)
.xor((BindingCondition<TestInterface>) nonConfirming).build();
TypeContainer container;
container = config.getTypeContainer(null, TestInterface.class, null, null, null);
assertNotNull(container);
assertEquals(TestImplementation1.class, container.getType());
assertFalse(container.isSingleton());
assertEquals(InstanceMode.CONSTRUCTOR, container.getInstanceMode());
}