@Test
public void testGetPublicKeyEntry() {

    
    TopLevelDomain dom1 = createTopLevelDomainObject("ServicePubKeyDom1",
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    ServiceIdentity service = createServiceObject("ServicePubKeyDom1",
            "Service1", "http://localhost", "/usr/bin/java", "root",
            "users", "host1");
    zms.putServiceIdentity(mockDomRsrcCtx, "ServicePubKeyDom1", "Service1", auditRef, service);
    PublicKeyEntry entry = zms.getPublicKeyEntry(mockDomRsrcCtx, "ServicePubKeyDom1", "Service1", "1");
    assertNotNull(entry);
    assertEquals(entry.getId(), "1");
    assertEquals(entry.getKey(), pubKeyK1);
    zms.deleteTopLevelDomain(mockDomRsrcCtx, "ServicePubKeyDom1", auditRef);
}