@Test
public void should_find_nothing_when_more_then_one_definition_of_class_present() {

	//given
	final ApplicationContext appContext = buildAppContext(Stream.of(
			bean("object1", new Object()),
			bean("object2", new Object())));
	final BeanDefinitionFinder definitionFinder = new BeanDefinitionFinder(appContext, emptyDoubleRegistry());
	//when
	final Optional<BeanDefinition> definition = definitionFinder.tryToFindSingleBeanDefinition(Object.class);
	//then
	assertFalse(definition.isPresent());
}