DirectRIAuditor implements SoapEdgeAuditor { @Override public void audit(String principal, String category, String message, SoapEdgeContext properties) { AuditEvent event = new AuditEvent(category, message); if (properties == null) { getAuditor().audit(principal, event); } else { getAuditor().audit(principal, event, getContexts(properties)); } }  @Override void audit(String principal, String category, String message, SoapEdgeContext properties);  }
@Test public void testWithNoProperties() { DirectRIAuditor auditor = getDirectRIAuditor(); auditor.audit("this is my principal.", "name", "type", null); }
@Test public void testWithProperties() { DirectRIAuditor auditor = getDirectRIAuditor(); auditor.audit("this is my principal.", "name", "type", getAuditable()); }
@Test(expected = IllegalArgumentException.class) public void testWithAllNulls() { DirectRIAuditor auditor = getDirectRIAuditor(); auditor.audit(null, null, null, null); }