AclScanner implements ArtifactInstaller { @Override public void update(File artifact) throws Exception { logger.info("Updating Acl {}", artifact.getAbsolutePath()); updateAcl(artifact); }  @Override boolean canHandle(File artifact); @Override void install(File artifact); @Override void update(File artifact); @Override void uninstall(File artifact); static final String ACL_DIRECTORY; }
@Test public void testCorruptedFileUpdate() throws Exception { File file = new File(AclScannerTest.class.getResource("/xacml_errors.xml").toURI()); try { aclScanner.update(file); fail("Should not be parsed."); } catch (XACMLParsingException e) { assertTrue("The file can not be parsed.", e.getCause() instanceof UnmarshalException); } }