@Test
public void should_find_bean_definition_by_name() {

	//given
	final String beanName = "object";
	final ApplicationContext appContext = buildAppContext(Stream.of(
			bean(beanName, new Object())));
	final BeanDefinitionFinder definitionFinder = new BeanDefinitionFinder(appContext, emptyDoubleRegistry());
	//when
	final Optional<BeanDefinition> definition = definitionFinder.tryToFindBeanDefinition(beanName);
	//then
	assertTrue(definition.isPresent());
}