Assert.assertEquals(xmlBuilder.get(request), "arg2");
}
@Test
public void testNormalOverrideList() {
XMLBuilder xmlBuilder = new XMLBuilder();
String request = "(namespace)element/element2[1]";
xmlBuilder.put(request, "arg");
xmlBuilder.put("(namespace)element/element2", "arg2");
String response = xmlBuilder.getAsString();
Node node = xmlBuilder.getNode();
Node element = node.getFirstChild();
Assert.assertEquals(element.getTextContent(), "arg2");
}