@Test
 public void getMergedAnnotationAttributesWithInvalidAliasedComposedAnnotation() {
   Class<?> element = InvalidAliasedComposedContextConfigClass.class;
   exception.expect(AnnotationConfigurationException.class);
   exception.expectMessage(
       either(containsString("attribute 'value' and its alias 'locations'"))
           .or(containsString("attribute 'locations' and its alias 'value'")));
   exception.expectMessage(
       either(containsString("values of [{duplicateDeclaration}] and [{test.xml}]"))
           .or(containsString("values of [{test.xml}] and [{duplicateDeclaration}]")));
   exception.expectMessage(containsString("but only one is permitted"));
   getMergedAnnotationAttributes(element, ContextConfig.class);
 }