public void shouldSearchInParentContainers() {
BatchExtension a = new FakeSensor();
BatchExtension b = new FakeSensor();
BatchExtension c = new FakeSensor();
ComponentContainer grandParent = new ComponentContainer();
grandParent.addSingleton(a);
ComponentContainer parent = grandParent.createChild();
parent.addSingleton(b);
ComponentContainer child = parent.createChild();
child.addSingleton(c);
BatchExtensionDictionnary dictionnary = new BatchExtensionDictionnary(child);
assertThat(dictionnary.select(BatchExtension.class)).containsOnly(a, b, c);
}