@Test
public void testGetDomainUserAuthorityFilter() {

    String domainName = "getdomain-user-authority-filter";
    Authority savedAuthority = zms.dbService.zmsConfig.getUserAuthority();
    Authority authority = Mockito.mock(Authority.class);
    zms.dbService.zmsConfig.setUserAuthority(authority);
    List<String> admins = new ArrayList<>();
    admins.add(adminUser);
    Domain domain = ZMSTestUtils.makeDomainObject(domainName, "test desc", "testOrg",
            false, "", 1234, "", 0);
    domain.setUserAuthorityFilter("employee");
    zms.dbService.makeDomain(mockDomRsrcCtx, domain, admins, null, auditRef);
    ObjectStoreConnection conn = zms.dbService.store.getConnection(true, false);
    assertEquals("employee", zms.dbService.getDomainUserAuthorityFilter(conn, domainName));
    zms.dbService.zmsConfig.setUserAuthority(savedAuthority);
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}