@Test
public void testExecutePutEntity() {

    String domainName = "createentitydom1";
    String entityName = "entity1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Entity entity1 = createEntityObject(entityName);
    zms.dbService.executePutEntity(mockDomRsrcCtx, domainName, entityName,
            entity1, auditRef, "putEntity");
    Entity entity2 = zms.getEntity(mockDomRsrcCtx, domainName, entityName);
    assertNotNull(entity2);
    assertEquals(entity2.getName(), entityName);
    Struct value = entity2.getValue();
    assertEquals("Value1", value.getString("Key1"));
    
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}