*/
@Test
public void testAttribute() throws Exception {
IntegerType integer = new IntegerType(parent, "test", "integer", 1);
Attribute value = new Attribute("http://www.test.org/test/", "test",
"value1", "StringValue1");
Attribute value2 = new Attribute(null, "test", "value2", "StringValue2");
integer.setAttribute(value);
// System.out.println(value.getQualifiedName());
Assert.assertEquals(value, integer.getAttribute(value
.getQualifiedName()));
Assert.assertTrue(integer.containsAttribute(value.getQualifiedName()));
// Replacement check
integer.setAttribute(value2);
Assert.assertEquals(value2, integer.getAttribute(value2
.getQualifiedName()));
integer.removeAttribute(value2.getQualifiedName());
Assert
.assertFalse(integer.containsAttribute(value2
.getQualifiedName()));
// Attribute with namespace Creation checking
Attribute valueNS = new Attribute("http://www.tefst2.org/test/",
"test2", "value2", "StringValue.2");
integer.setAttribute(valueNS);
Attribute valueNS2 = new Attribute("http://www.test2.org/test/",
"test2", "value2", "StringValueTwo");
integer.setAttribute(valueNS2);
List<Attribute> atts = integer.getAllAttributes();
/*