### Question:
ResourceDocumentation { public void addDocumentation() throws IOException, XPathException { final NodeList topLevelResources = manipulator.getNodeList(this.doc, " for (int i = 0; i < topLevelResources.getLength(); i++) { final Node node = topLevelResources.item(i); final ResourceEndPointTemplate resourceTemplate = getResourceTemplate(node); if (resourceTemplate != null) { addTag(node, "doc", resourceTemplate.getDoc()); addTag(node, "deprecatedVersion", resourceTemplate.getDeprecatedVersion()); addTag(node, "deprecatedReason", resourceTemplate.getDeprecatedReason()); addTag(node, "availableSince", resourceTemplate.getAvailableSince()); } } } ResourceDocumentation(final Document doc);  ResourceDocumentation(final Document doc, final String resourceLoc); void addDocumentation();  }### Answer:
@Test public void testAddDocumentation() throws Exception { NodeList section = documentManipulator.getNodeList(testWadl, " assertEquals(1, section.getLength()); Node sectionNodeDoc = documentManipulator.getNodeList(testWadl, " assertNotNull(sectionNodeDoc); assertEquals("test /sections doc", sectionNodeDoc.getFirstChild().getNodeValue()); }