@Test
public void testUpdateRoleSystemMetaFields() {

    Role updatedRole = new Role();
    Role originalRole = new Role();
    RoleSystemMeta meta = new RoleSystemMeta()
            .setAuditEnabled(true);
    zms.dbService.updateRoleSystemMetaFields(mockJdbcConn, updatedRole, originalRole, "auditenabled", meta, "unit-test");
    assertTrue(updatedRole.getAuditEnabled());
    try {
        zms.dbService.updateRoleSystemMetaFields(mockJdbcConn, updatedRole, originalRole, "unknown", meta, "unit-test");
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 400);
    }
}