void () { XmlNSDescriptor NSDescriptor = createDescriptor( "<!ENTITY % boolean \"true | false\" > <!ELEMENT foo EMPTY> <!ATTLIST foo someBoolean (%boolean;) \"true\" someString CDATA #IMPLIED >"); final XmlTag tag = tag("foo"); final XmlElementDescriptor elementDescriptor = NSDescriptor.getElementDescriptor(tag); final XmlAttributeDescriptor[] attributes = elementDescriptor.getAttributesDescriptors(tag); assertEquals(2, attributes.length); assertEquals("someBoolean", attributes[0].getName()); assertEquals("someString", attributes[1].getName()); assertTrue(attributes[0].isEnumerated()); assertEquals(2, attributes[0].getEnumeratedValues().length); assertEquals("true", attributes[0].getEnumeratedValues()[0]); assertEquals("false", attributes[0].getEnumeratedValues()[1]); }