mapping = new SynchronizedMapping();
InputSource is = new InputSource(new FileReader(map));
is.setSystemId(mapFile);
mapping.loadMapping(is);
Unmarshaller unmarshaller = new Unmarshaller(mapping);
ContentURL url = (ContentURL) unmarshaller.unmarshal(reader);
assertNotNull(url);
System.out.println(url.getURL());
assertTrue(url.getURL().equals("http://www.xmlhack.com/rss.php"));
assertTrue(url.isCacheKey());
}
catch (Exception e)
{
String errmsg = "Error in xreg mapping creation: " + e.toString();
System.err.println(errmsg);