boolean entryFound = false;
System.out.println("Testing marshalling of Registry security-entry");
String xregFile = "webapp/WEB-INF/psml/test/testcase-security.xreg";
Mapping mapping = null;
String mapFile = getMappingFileName();
File map = new File(mapFile);
if (map.exists() && map.isFile() && map.canRead())
{
FileReader reader = new FileReader(xregFile);
mapping = new SynchronizedMapping();
InputSource is = new InputSource(new FileReader(map));
is.setSystemId(mapFile);
mapping.loadMapping(is);
Unmarshaller unmarshaller = new Unmarshaller(mapping);
RegistryFragment fragment = (RegistryFragment) unmarshaller.unmarshal(reader);
assertNotNull(fragment);
Vector securityEntries = fragment.getSecurityEntries();
assertTrue("Security Entries exist", !securityEntries.isEmpty());