public void testSetDocumentLocator() throws Exception {
// create an instance of the class that is to be tested
XMLProcess process = createTestableProcess();
// create a locator
LocatorImpl locator = new LocatorImpl();
// create a "base" URI
URL baseURI = null;
try {
baseURI = new URL("http://foo.com");
} catch (MalformedURLException e) {
fail("Could not construct a java.net.URL instance");
}
// update the locator with the location
locator.setSystemId(baseURI.toExternalForm());
// set the next process
XMLProcessTestable next = new XMLProcessTestable();
process.setNextProcess(next);