// Assert that there are no attributes to start with
assertEquals(0, getXMLObject().getAttributes().size());
// Make a set of sample data
Set<XMLAttribute> attributes = new HashSet<XMLAttribute>();
attributes.add(new XMLAttributeImpl(testNsUrl1, testName1, testValue1));
attributes.add(new XMLAttributeImpl(testNsUrl2, testName2, testValue2));
attributes.add(new XMLAttributeImpl(testNsUrl3, testName3, testValue3));
// Add the same values from the sample data to the XML Object
getXMLObject().declarePrefix(testNsPrefix1, testNsUrl1);
getXMLObject().addAttribute(testNsUrl1, testName1, testValue1);
getXMLObject().declarePrefix(testNsPrefix2, testNsUrl2);