element.appendChild(IdentifierTest.getFixture().getXOMElementCopy());
element.appendChild(TitleTest.getFixture().getXOMElementCopy());
element.appendChild(CreatorTest.getFixture().getXOMElementCopy());
element.appendChild(SubjectCoverageTest.getFixture().getXOMElementCopy());
Link link = new Link(new XLinkAttributes("http://en.wikipedia.org/wiki/Tank", "role", null, null));
// #1: a ddms:relatedResources containing 1 ddms:RelatedResource
Element rel1 = Util.buildDDMSElement(RelatedResource.getName(version), null);
Util.addDDMSAttribute(rel1, "relationship", "http://purl.org/dc/terms/references");
Element innerElement = Util.buildDDMSElement("RelatedResource", null);
Util.addDDMSAttribute(innerElement, "qualifier", "http://purl.org/dc/terms/URI");
Util.addDDMSAttribute(innerElement, "value", "http://en.wikipedia.org/wiki/Tank1");
innerElement.appendChild(link.getXOMElementCopy());
rel1.appendChild(innerElement);
element.appendChild(rel1);
// #2: a ddms:relatedResources containing 3 ddms:RelatedResources
Element rel2 = Util.buildDDMSElement(RelatedResource.getName(version), null);
Util.addDDMSAttribute(rel2, "relationship", "http://purl.org/dc/terms/references");
Element innerElement1 = Util.buildDDMSElement("RelatedResource", null);
Util.addDDMSAttribute(innerElement1, "qualifier", "http://purl.org/dc/terms/URI");
Util.addDDMSAttribute(innerElement1, "value", "http://en.wikipedia.org/wiki/Tank2");
innerElement1.appendChild(link.getXOMElementCopy());
Element innerElement2 = Util.buildDDMSElement("RelatedResource", null);
Util.addDDMSAttribute(innerElement2, "qualifier", "http://purl.org/dc/terms/URI");
Util.addDDMSAttribute(innerElement2, "value", "http://en.wikipedia.org/wiki/Tank3");
innerElement2.appendChild(link.getXOMElementCopy());
Element innerElement3 = Util.buildDDMSElement("RelatedResource", null);
Util.addDDMSAttribute(innerElement3, "qualifier", "http://purl.org/dc/terms/URI");
Util.addDDMSAttribute(innerElement3, "value", "http://en.wikipedia.org/wiki/Tank4");
innerElement3.appendChild(link.getXOMElementCopy());
rel2.appendChild(innerElement1);
rel2.appendChild(innerElement2);
rel2.appendChild(innerElement3);
element.appendChild(rel2);