@Test
public void testGetServiceIdentityInvalid() {

    
    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);
    
    try {
        zts.getServiceIdentity(context, "coretech", "storage2");
        fail();
    } catch (ResourceException ex) {
        assertTrue(true);
    }
    
    try {
        zts.getServiceIdentity(context, "testDomain2", "storage");
        fail();
    } catch (ResourceException ex) {
        assertTrue(true);
    }
}