assertNotNull(resource);
    public void testSerialize1( ) throws Exception{        System.out.println("Xerces version: "+org.apache.xerces.impl.Version.getVersion( ));        XMLResource resource = (XMLResource) c.createResource(null, "XMLResource");        Document doc = javax.xml.parsers.DocumentBuilderFactory.newInstance( ).			newDocumentBuilder().parse(testFile);        resource.setContentAsDOM(doc);        System.out.println("Storing resource: "+resource.getId( ));        c.storeResource(resource);        resource = (XMLResource)c.getResource(resource.getId());        Node node = resource.getContentAsDOM( );        node = node.getOwnerDocument();                System.out.println("Attempting serialization 1");        DOMSource source = new DOMSource(node);        ByteArrayOutputStream out = new ByteArrayOutputStream( );        StreamResult result = new StreamResult(out);        Transformer xformer = TransformerFactory.newInstance().newTransformer();        xformer.transform(source, result);        System.out.println("Using javax.xml.transform.Transformer");        System.out.println("---------------------");        System.out.println(new String(out.toByteArray()));        System.out.println("--------------------- ");    }