}
@Test
public void testExtensibleDuplicates() throws InvalidDDMSException {
for (String sVersion : getSupportedVersions()) {
DDMSVersion version = DDMSVersion.setCurrentVersion(sVersion);
createComponents();
if (version.isAtLeast("5.0"))
continue;
// IsmDESVersion in parameter AND extensible.
List<Attribute> exAttr = new ArrayList<Attribute>();
exAttr.add(new Attribute("ism:DESVersion", version.getIsmNamespace(), "2"));
ExtensibleAttributes attributes = new ExtensibleAttributes(exAttr);
Resource.Builder builder = getBaseBuilder();
builder.setExtensibleAttributes(new ExtensibleAttributes.Builder(attributes));
getInstance(builder, "The extensible attribute with the name, ism:DESVersion");
if (version.isAtLeast("4.0.1")) {
// NtkDESVersion in parameter AND extensible.
exAttr = new ArrayList<Attribute>();
exAttr.add(new Attribute("ntk:DESVersion", version.getNtkNamespace(), "2"));
attributes = new ExtensibleAttributes(exAttr);
builder = getBaseBuilder();
builder.setExtensibleAttributes(new ExtensibleAttributes.Builder(attributes));
getInstance(builder, "The extensible attribute with the name, ntk:DESVersion");
}
// classification in securityAttributes AND extensible.
exAttr = new ArrayList<Attribute>();
exAttr.add(new Attribute("ism:classification", version.getIsmNamespace(), "S"));
attributes = new ExtensibleAttributes(exAttr);
builder = getBaseBuilder();
builder.getSecurityAttributes().setClassification("U");
builder.setExtensibleAttributes(new ExtensibleAttributes.Builder(attributes));
getInstance(builder, "The extensible attribute with the name, ism:classification");