@Test
public void testAuditLogPublicKeyEntry() {

    StringBuilder auditDetails = new StringBuilder();
    assertFalse(zms.dbService.auditLogPublicKeyEntry(auditDetails, "keyId", true));
    assertEquals("{\"id\": \"keyId\"}", auditDetails.toString());
    
    auditDetails.setLength(0);
    assertFalse(zms.dbService.auditLogPublicKeyEntry(auditDetails, "keyId", false));
    assertEquals(",{\"id\": \"keyId\"}", auditDetails.toString());
}