@Test
public void testGetTenantDomainsMultipleDomains() {

    SignedDomain signedDomain = createMultipleSignedDomains("athenz.multiple", "hockey.kings", "hockey.stars", 
            "storage", true);
    store.processDomain(signedDomain, false);
    
    signedDomain = createTenantSignedDomain("hockey.kings", "athenz.multiple", "storage");
    store.processDomain(signedDomain, false);
    
    signedDomain = createTenantSignedDomain("hockey.stars", "athenz.multiple", "storage");
    store.processDomain(signedDomain, false);
    
    SimplePrincipal principal = (SimplePrincipal) SimplePrincipal.create("hockey", "kings",
            "v=S1,d=hockey;n=kings;s=sig", 0, new PrincipalAuthority());
    ResourceContext context = createResourceContext(principal);
    
    TenantDomains tenantDomains = zts.getTenantDomains(context, "athenz.multiple",
            "user_domain.user100", null, null);
    assertNotNull(tenantDomains);
    assertEquals(tenantDomains.getTenantDomainNames().size(), 2);
    assertTrue(tenantDomains.getTenantDomainNames().contains("hockey.kings"));
    assertTrue(tenantDomains.getTenantDomainNames().contains("hockey.stars"));
}