@Test
public void should_detect_duplicated_beans_of_the_same_type_on_the_same_level() {

	//given
	class Bean {}
	final ApplicationContext ctx = buildAppContext(Stream.of(
			bean("1", new Bean()),
			bean("2", new Bean())));
	final ApplicationContextWalker walker = new ApplicationContextWalker(ctx);
	//expect
	assertFalse(walker.hasOnlyOneBeanOfClass(Bean.class));
}