@Test
public void testExecuteDeleteQuota() {

    String domainName = "executedeletequota";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Quota quota = new Quota().setName(domainName)
            .setAssertion(10).setEntity(11)
            .setPolicy(12).setPublicKey(13)
            .setRole(14).setRoleMember(15)
            .setService(16).setServiceHost(17)
            .setSubdomain(18).setGroupMember(19).setGroup(20);
    
    zms.dbService.executePutQuota(mockDomRsrcCtx, domainName, quota,
            auditRef, "testExecuteDeleteQuota");
    Quota quotaCheck = zms.getQuota(mockDomRsrcCtx, domainName);
    assertNotNull(quotaCheck);
    assertEquals(domainName, quotaCheck.getName());
    assertEquals(quotaCheck.getAssertion(), 10);
    assertEquals(quotaCheck.getRole(), 14);
    assertEquals(quotaCheck.getPolicy(), 12);
    
    // now delete the quota
    
    zms.dbService.executeDeleteQuota(mockDomRsrcCtx, domainName, auditRef,
            "testExecuteDeleteQuota");
    
    // now we'll get the default quota
    
    quotaCheck = zms.getQuota(mockDomRsrcCtx, domainName);
    assertEquals("server-default", quotaCheck.getName());
    assertEquals(quotaCheck.getAssertion(), 100);
    assertEquals(quotaCheck.getRole(), 1000);
    assertEquals(quotaCheck.getPolicy(), 1000);
    
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}