@Test
public void testGetRoleTokenTrustDomainWildCardGivenRole() {

    SignedDomain signedDomain = createSignedDomainWildCard("weather", "netops");
    store.processDomain(signedDomain, false);
    
    signedDomain = createTenantSignedDomainWildCard("netops");
    store.processDomain(signedDomain, false);
    
    Principal principal = SimplePrincipal.create("user_domain", "siteops_user_1",
            "v=U1;d=user_domain;n=siteops_user_1;s=signature", 0, null);
    ResourceContext context = createResourceContext(principal);
    
    RoleToken roleToken = zts.getRoleToken(context, "weather", "netops_superusers", null, null, null);
    com.yahoo.athenz.auth.token.RoleToken token = new com.yahoo.athenz.auth.token.RoleToken(roleToken.getToken());
    assertEquals(token.getRoles().size(), 1);
    assertTrue(token.getRoles().contains("netops_superusers"));
}