@Test
public void testGetServiceIdentity() {

    
    SignedDomain signedDomain = createSignedDomain("coretech", "weather", "storage", true);
    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);
    
    com.yahoo.athenz.zts.ServiceIdentity svc = zts.getServiceIdentity(context, "coretech", "storage");
    assertNotNull(svc);
    assertEquals(svc.getName(), "coretech.storage");
    
    svc = zts.getServiceIdentity(context, "coretech", "backup");
    assertNotNull(svc);
    assertEquals(svc.getName(), "coretech.backup");
}