assertThat(dictionnary.select(BatchExtension.class)).containsOnly(a, b, c);
}
@Test
public void sortExtensionsByDependency() {
BatchExtension a = new MethodDependentOf(null);
BatchExtension b = new MethodDependentOf(a);
BatchExtension c = new MethodDependentOf(b);
BatchExtensionDictionnary selector = newSelector(b, c, a);
List<BatchExtension> extensions = Lists.newArrayList(selector.select(BatchExtension.class, null, true));
assertThat(extensions).hasSize(3);