@Test
public void testAuditLogRoleMeta() {

    StringBuilder auditDetails = new StringBuilder();
    Role role = new Role().setName("dom1:role.role1").setSelfServe(true).setReviewEnabled(false);
    zms.dbService.auditLogRoleMeta(auditDetails, role, "role1");
    assertEquals(auditDetails.toString(),
            "{\"name\": \"role1\", \"selfServe\": \"true\", \"memberExpiryDays\": \"null\","
                    + " \"serviceExpiryDays\": \"null\", \"tokenExpiryMins\": \"null\","
                    + " \"certExpiryMins\": \"null\", \"memberReviewDays\": \"null\", \"serviceReviewDays\": \"null\","
                    + " \"reviewEnabled\": \"false\", \"notifyRoles\": \"null\", \"signAlgorithm\": \"null\","
                    + " \"userAuthorityFilter\": \"null\", \"userAuthorityExpiration\": \"null\"}");
}