DefaultAuditContext implements AuditContext { @Override public String toString() { return name + ":" + value; } DefaultAuditContext(String name, String value); @Override String getContextName(); @Override String getContextValue(); @Override String toString();  }
@Test public void testAuditContextToString() throws Exception { DefaultAuditContext context = new DefaultAuditContext("name", "value"); assertEquals("name:value", context.toString()); }