@Test
public void should_fallback_to_find_by_class_search_if_no_name_match() {

	//given
	final ApplicationContext appContext = buildAppContext(Stream.of(
			bean("string", "any bean")));
	final BeanDefinitionFinder definitionFinder = new BeanDefinitionFinder(appContext, emptyDoubleRegistry());
	//when
	final Optional<BeanDefinition> definition = definitionFinder.tryToFindBeanDefinition(
			"not matching name",
			String.class);
	//then
	assertTrue(definition.isPresent());
}