Resource resource = testCollection.getResource("test.xml"); assertNotNull(resource); System.out.println("Content:\n" + resource.getContent().toString());  XMLResource xmlResource = (XMLResource) testCollection.createResource("test.xml", "XMLResource"); xmlResource.setContent(xmlFile); testCollection.storeResource(xmlResource);
Resource resource = testCollection.getResource("test.xml"); assertNotNull(resource); System.out.println("Content:\n" + resource.getContent().toString());
    public void testUpdateBinary() {        try {            BinaryResource binaryResource = (BinaryResource)                    testCollection.createResource("test.xml", "BinaryResource");            binaryResource.setContent(binFile);            testCollection.storeResource(binaryResource);            Resource resource = testCollection.getResource("test.xml");            assertNotNull(resource);            System.out.println("Content:\n" + resource.getContent().toString());                        XMLResource xmlResource = (XMLResource) testCollection.createResource("test.xml", "XMLResource");            xmlResource.setContent(xmlFile);            testCollection.storeResource(xmlResource);            resource = testCollection.getResource("test.xml");            assertNotNull(resource);            System.out.println("Content:\n" + resource.getContent().toString());        } catch (XMLDBException e) {            e.printStackTrace();            fail(e.getMessage());        }    }