@Test
public void testRetrieveTenantDomainNameInvalidEntries() {

    
    // less than 4 components
    
    assertNull(zts.retrieveTenantDomainName("dom1", null));
    assertNull(zts.retrieveTenantDomainName("dom1.tenant", null));
    assertNull(zts.retrieveTenantDomainName("dom1.tenant.dom3", null));
    
    // second component is not tenant
    
    assertNull(zts.retrieveTenantDomainName("dom1.dom2.dom3.admin", null));
    assertNull(zts.retrieveTenantDomainName("dom1.dom2.tenant.read", null));
    assertNull(zts.retrieveTenantDomainName("tenant.dom2.dom3.write", null));
    
    // service name does not match to the given value
    
    assertNull(zts.retrieveTenantDomainName("service1.tenant.dom3.read", "service2"));
    assertNull(zts.retrieveTenantDomainName("service2.tenant.dom3.dom4.admin", "service"));
}