@Test
public void testNormalizeDomainAliasUser() {

    assertNull(zts.normalizeDomainAliasUser(null));
    assertEquals(zts.normalizeDomainAliasUser(""), "");
    
    zts.userDomainAlias = null;
    zts.userDomainAliasPrefix = null;
    assertEquals(zts.normalizeDomainAliasUser("user.joe"), "user.joe");
    assertEquals(zts.normalizeDomainAliasUser("useralias.joe"), "useralias.joe");
    assertEquals(zts.normalizeDomainAliasUser("useralias.joe.svc"), "useralias.joe.svc");
    assertEquals(zts.normalizeDomainAliasUser("joe"), "joe");
    zts.userDomainAlias = "useralias";
    zts.userDomainAliasPrefix = "useralias.";
    assertEquals(zts.normalizeDomainAliasUser("user.joe"), "user.joe");
    assertEquals(zts.normalizeDomainAliasUser("useralias.joe"), "user.joe");
    assertEquals(zts.normalizeDomainAliasUser("useralias.joe.svc"), "useralias.joe.svc");
    assertEquals(zts.normalizeDomainAliasUser("joe"), "joe");
}