@Test
public void test() {
AuditEventProcessorFinder finder = new AuditEventProcessorFinder();
AuditEventProcessorPipeline pipeline = new AuditEventProcessorPipeline();
URL url = EventProcessorFinderTest.class
.getResource("/event-processors.xml");
log.info("Adding event-processors from {}", url);
try {
finder.deployCustomEventProcessors(url.openStream(), pipeline);
for (EventProcessor<AuditEvent> p : pipeline.getProcessors()) {
log.info("Priority: {}, processor: {}",
pipeline.getPriority(p), p);
}
} catch (Exception e) {
e.printStackTrace();
fail("Not yet implemented");
}