@Test
public void testProcessRoleInsert() {

    ObjectStoreConnection conn = Mockito.mock(ObjectStoreConnection.class);
    Role role = new Role().setName("newRole").setAuditEnabled(true).setSelfServe(true);
    StringBuilder auditDetails = new StringBuilder("testAudit");
    zms.dbService.processRole(conn, null, "auditedDomain", "testRole1",
            role, adminUser, auditRef, false, auditDetails);
    assertFalse(role.getAuditEnabled());
    assertTrue(role.getSelfServe());
}