@Test
public void should_ignore_existing_spies_when_searching_for_bean_by_class() {

	//given
	final String spyName = "spy";
	final DoubleRegistry doubleRegistry = new DoubleRegistry(
			emptyList(),
			singletonList(doubleDefinition(String.class, spyName)));
	final ApplicationContext appCtx = buildAppContext(Stream.of(
			bean(spyName, spyName + " - bean")
	));
	final BeanDefinitionFinder definitionFinder = new BeanDefinitionFinder(appCtx, doubleRegistry);
	//when
	final Optional<BeanDefinition> definition = definitionFinder.tryToFindBeanDefinition("any bean name", String.class);
	//then
	assertFalse(definition.isPresent());
}