@Test
public void testUpdateRoleSystemMetaFieldsInvalidGroup() {

    Role updatedRole = new Role().setAuditEnabled(true);
    RoleMember roleMember = new RoleMember().setMemberName("coretech:group.group1");
    List<RoleMember> roleMembers = new ArrayList<>();
    roleMembers.add(roleMember);
    Role originalRole = new Role().setRoleMembers(roleMembers);
    RoleSystemMeta meta = new RoleSystemMeta().setAuditEnabled(true);
    try {
        zms.dbService.updateRoleSystemMetaFields(mockJdbcConn, updatedRole, originalRole, "auditenabled",
                meta, "unittest");
        fail();
    } catch (ResourceException ex) {
        assertTrue(ex.getMessage().contains("role has invalid group member"));
    }
}