@Nullable
	public <T> T getInstanceWithoutAncestors(String name, Class<T> type) {
		try {
			return BeanFactoryUtils.beanOfType(getContext(name), type);
		}
		catch (BeansException ex) {
			return null;
		}
	}
@Test
	void getInstanceWithoutAncestors() {
		AnnotationConfigApplicationContext parent = new AnnotationConfigApplicationContext();
		parent.refresh();

		FeignClientFactory feignClientFactory = new FeignClientFactory();
		feignClientFactory.setApplicationContext(parent);
		feignClientFactory.setConfigurations(Lists.newArrayList(getSpec("demo", null, DemoConfiguration.class)));

		Logger.Level level = feignClientFactory.getInstanceWithoutAncestors("demo", Logger.Level.class);

		assertThat(level).isEqualTo(Logger.Level.FULL);
	}