void () { XmlNSDescriptor NSDescriptor = createDescriptor( "<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" + "<xsd:element name=\"purchaseOrder\" type=\"PurchaseOrderType\"/>" + "<xsd:complexType name=\"PurchaseOrderType\">" + " <xsd:attribute ref=\"orderDate\" use=\"required\"/>" + "</xsd:complexType>" + " <xsd:attribute name=\"orderDate\" type=\"xsd:date\" fixed=\"1 01 2001\"/>" + "</xsd:schema>"); final XmlTag tag = XmlTestUtil.tag("purchaseOrder", getProject()); XmlElementDescriptor elementDescriptor = NSDescriptor.getElementDescriptor(tag); XmlAttributeDescriptor attribute = elementDescriptor.getAttributeDescriptor("orderDate", tag); assertNotNull(attribute); assertTrue(!attribute.isEnumerated()); assertTrue(attribute.isFixed()); assertTrue(attribute.isRequired()); assertEquals("1 01 2001", attribute.getDefaultValue()); }