@Test
public void testExecuteDeletePublicKeyEntry() {

    
    String domainName = "servicedelpubkeydom1";
    String serviceName = "service1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    ServiceIdentity service = createServiceObject(domainName,
            serviceName, "http://localhost", "/usr/bin/java", "root",
            "users", "host1");
    zms.putServiceIdentity(mockDomRsrcCtx, domainName, serviceName, auditRef, service);
    zms.dbService.executeDeletePublicKeyEntry(mockDomRsrcCtx, domainName, serviceName,
            "1", auditRef, "deletePublicKeyEntry");
    ServiceIdentity serviceRes = zms.getServiceIdentity(mockDomRsrcCtx, domainName, serviceName);
    List<PublicKeyEntry> keyList = serviceRes.getPublicKeys();
    boolean found = false;
    for (PublicKeyEntry entry : keyList) {
        if (entry.getId().equals("1")) {
            found = true;
            break;
        }
    }
    assertFalse(found);
    
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}