@Test
public void testExecuteDeleteEntity() {

    String domainName = "delentitydom1";
    String entityName = "entity1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Entity entity1 = createEntityObject(entityName);
    zms.putEntity(mockDomRsrcCtx, domainName, entityName, auditRef, entity1);
    Entity entityRes = zms.getEntity(mockDomRsrcCtx, domainName, entityName);
    assertNotNull(entityRes);
    zms.dbService.executeDeleteEntity(mockDomRsrcCtx, domainName, entityName, auditRef, "deleteEntity");
    try {
        zms.getEntity(mockDomRsrcCtx, domainName, entityName);
        fail();
    } catch (Exception ex) {
        assertTrue(true);
    }
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}