agave-monitors/monitors-core/src/test/java/org/iplantc/service/monitor/uuid/MonitorEventUUIDEntityLookupTest.java
/**
     * Serialize the entity into a JSON string. This should call out
     * to a {@link Monitor#toJSON()} method in the entity or delegate to
     * Jackson Annotations.
     *
     * @param testEntity entity to serialize
     * @return
     */
Serialize the entity into a JSON string. This should call out
to a  Monitor#toJSON() method in the entity or delegate to
Jackson Annotations.

@param testEntity entity to serialize
@return
Serialize the entity into a JSON string . This should call out to a Monitor#toJSON () method in the entity or delegate to Jackson Annotations . @param testEntity entity to serialize @return
@Override
    public String serializeEntityToJSON(DomainEntityEvent testEntity) {
        ObjectMapper mapper = new ObjectMapper();
        String json = null;
        try {
            json = mapper.writeValueAsString(testEntity);
        } catch (JsonProcessingException e) {
            Assert.fail("Failed to serialize event", e);
        }
        return json;
    }
@ Override public String serializeEntityToJSON ( DomainEntityEvent testEntity ) { ObjectMapper mapper = new ObjectMapper ( ) ; String json = null ; try { json = mapper . writeValueAsString ( testEntity ) ; } catch ( JsonProcessingException e ) { Assert . fail ( "Failed to serialize event" , e ) ; } return json ; }
Serialize the entity into a JSON string.
Serialize the entity into a JSON string .