@Test
public void testPutQuota() {

    String domainName = "putquota";
    
    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.putQuota(mockDomRsrcCtx, domainName, auditRef, quota);
    // now retrieve the quota using zms interface
    
    Quota quotaCheck = zms.getQuota(mockDomRsrcCtx, domainName);
    assertNotNull(quotaCheck);
    assertEquals(quotaCheck.getAssertion(), 10);
    assertEquals(quotaCheck.getRole(), 14);
    assertEquals(quotaCheck.getPolicy(), 12);
    
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}