Map<String, Object> ctx = new LinkedHashMap<String, Object>();
RemoteAddressResolver resolver = new RemoteAddressResolver();
try {
AuditEvent evt = events.get(0);
String before = evt.get(ModSecurity.REMOTE_ADDR);
log.info("Remote address BEFORE processing is: {}", before);
Assert.assertEquals("172.16.0.1", before);
log.info("Applying event-processor...");
evt = resolver.processEvent(events.get(0), ctx);
String remoteAddress = evt.get(ModSecurity.REMOTE_ADDR);
log.info("Remote address after processing is: {}", remoteAddress);
Assert.assertEquals("1.2.3.4", remoteAddress);
} catch (Exception e) {