XMLResource doc = (XMLResource) testCollection.getResource("test.xml");
XMLResource doc = (XMLResource) testCollection.getResource(resources[0]);
	public void testReadResource() {		try {			Collection testCollection = DatabaseManager.getCollection(URI + "/test");			assertNotNull(testCollection);			String[] resources = testCollection.listResources();			assertEquals(resources.length, testCollection.getResourceCount());			System.out.println("reading " + resources[0]);			XMLResource doc = (XMLResource) testCollection.getResource("test.xml");			assertNotNull(doc);			System.out.println("testing XMLResource.getContentAsSAX()");			StringWriter sout = new StringWriter();			OutputFormat format = new OutputFormat("xml", "ISO-8859-1", true);			format.setLineWidth(60);			XMLSerializer xmlout = new XMLSerializer(sout, format);			doc.getContentAsSAX(xmlout);			System.out.println("----------------------------------------");			System.out.println(sout.toString());			System.out.println("----------------------------------------");		} catch (Exception e) {			fail(e.getMessage());		}	}