reader.loadBeanDefinitions(CONFIG_LOCATION);
QualifierAnnotationAutowireCandidateResolver resolver = (QualifierAnnotationAutowireCandidateResolver)
context.getDefaultListableBeanFactory().getAutowireCandidateResolver();
resolver.addQualifierType(MultipleAttributeQualifier.class);
context.registerSingleton("testBean", QualifiedByAttributesTestBean.class);
context.refresh();
QualifiedByAttributesTestBean testBean = (QualifiedByAttributesTestBean) context.getBean("testBean");
Person moeSenior = testBean.getMoeSenior();
Person moeJunior = testBean.getMoeJunior();
assertEquals("Moe Sr.", moeSenior.getName());
assertEquals("Moe Jr.", moeJunior.getName());