private void verifyAuditEvent( LoggingEvent event, String resourceName,
String resourceType, String action, String outcome, String targetService,
String message ) {
event.getMDCCopy();
CorrelationContext cc = (CorrelationContext) event.getMDC( Log4jCorrelationService.MDC_CORRELATION_CONTEXT_KEY );
assertThat( cc, notNullValue() );
assertThat( cc.getRequestId(), is( notNullValue() ) );
AuditContext ac = (AuditContext) event.getMDC( Log4jAuditService.MDC_AUDIT_CONTEXT_KEY );
assertThat( ac, notNullValue() );
assertThat( ac.getRemoteIp(), is( ADDRESS ) );
assertThat( ac.getRemoteHostname(), is( HOST ) );
assertThat( (String) event.getMDC( AuditConstants.MDC_SERVICE_KEY ), is( AuditConstants.KNOX_SERVICE_NAME ) );