DDMSVersion.setCurrentVersion("3.1");
getInstance(builder, "Security attributes must not be applied");
// No attributes in 2.0
DDMSVersion.setCurrentVersion("2.0");
ExtensibleAttributes attributes = ExtensibleAttributesTest.getFixture();
builder = getBaseBuilder();
builder.setExtensibleAttributes(new ExtensibleAttributes.Builder(attributes));
getInstance(builder, "xs:anyAttribute must not be applied");
DDMSVersion version = DDMSVersion.setCurrentVersion("3.0");
Attribute attr = new Attribute("ddms:value", version.getNamespace(), "dog");
// Using ddms:value as the extension (data)
List<Attribute> extAttributes = new ArrayList<Attribute>();
extAttributes.add(attr);
attributes = new ExtensibleAttributes(extAttributes);
builder = getBaseBuilder();
builder.setExtensibleAttributes(new ExtensibleAttributes.Builder(attributes));
getInstance(builder, "The extensible attribute with the name, ddms:value");
}