new Parameter[] {
new CollectionConstraint(new Or(new IsType(AlternativeTouchable.class),
new IsType(DecoratedTouchable.class)))
});
DependsOnList dol = (DependsOnList) container.getComponentInstance(DependsOnList.class);
AlternativeTouchable at = (AlternativeTouchable) container.getComponentInstance(AlternativeTouchable.class);
DecoratedTouchable dt = (DecoratedTouchable) container.getComponentInstance(DecoratedTouchable.class);
assertNotNull(dol);
List dependencies = dol.getDependencies();
assertEquals(2, dependencies.size());
assertTrue(dependencies.contains(at));
assertTrue(dependencies.contains(dt));
}