Document doc = builder.newDocument();
Element root = doc.createElementNS("http://www.example.org/", "pre:root");
doc.appendChild(root);
context.addElementNamespaces(new org.jaxen.dom.DocumentNavigator(), root);
assertEquals("http://www.example.org/", context.translateNamespacePrefixToUri("pre"));
}
public void testSerialization() throws IOException, ClassNotFoundException {
// construct test object