@Test
public void testExecutePutPolicy() {

    String domainName = "policyadddom1";
    String policyName = "policy1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Policy policy1 = createPolicyObject(domainName, policyName);
    zms.dbService.executePutPolicy(mockDomRsrcCtx, domainName, policyName,
            policy1, auditRef, "putPolicy");
    Policy policyRes2 = zms.getPolicy(mockDomRsrcCtx, domainName, policyName);
    assertNotNull(policyRes2);
    assertEquals(policyRes2.getName(), domainName + ":policy." + policyName);
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}