@Test
public void testNormalizedAdminUsers() {

    List<String> list = new ArrayList<>();
    list.add("user-alias.user1");
    list.add("user-alias.user1.svc");
    list.add("user.user2");
    list.add("user.user2.svc");
    
    ZMSImpl zmsImpl = zmsInit();
    zmsImpl.userDomain = "user";
    zmsImpl.userDomainPrefix = "user.";
    zmsImpl.userDomainAlias = null;
    zmsImpl.userDomainAliasPrefix = null;
    
    List<String> normList = zmsImpl.normalizedAdminUsers(list, null, "unit-test");
    assertEquals(normList.size(), 4);
    assertTrue(normList.contains("user-alias.user1"));
    assertTrue(normList.contains("user-alias.user1.svc"));
    assertTrue(normList.contains("user.user2"));
    assertTrue(normList.contains("user.user2.svc"));
    
    zmsImpl.userDomainAlias = "user-alias";
    zmsImpl.userDomainAliasPrefix = "user-alias.";
    
    normList = zmsImpl.normalizedAdminUsers(list, null, "unit-test");
    assertEquals(normList.size(), 4);
    assertTrue(normList.contains("user.user1"));
    assertTrue(normList.contains("user-alias.user1.svc"));
    assertTrue(normList.contains("user.user2"));
    assertTrue(normList.contains("user.user2.svc"));
    zmsImpl.objectStore.clearConnections();
}