agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * Create an execution system domain object from a json object
     * @param json JSONObject that represents and ExecutionSystem
     * @return ExecutionSystem that can be used in testing or persisted to database.
     */
Create an execution system domain object from a json object
@param json JSONObject that represents and ExecutionSystem
@return ExecutionSystem that can be used in testing or persisted to database.
Create an execution system domain object from a json object @param json JSONObject that represents and ExecutionSystem @return ExecutionSystem that can be used in testing or persisted to database .
public ExecutionSystem createExecutionSystemFromJson(JSONObject json){
        ExecutionSystem executionSystem = null;
        try {
            executionSystem = ExecutionSystem.fromJSON(json);
        } catch (SystemException | SystemArgumentException e) {
            log.error("Unable to marshal execution system from json", e);
        }
        return executionSystem;
    }
public ExecutionSystem createExecutionSystemFromJson ( JSONObject json ) { ExecutionSystem executionSystem = null ; try { executionSystem = ExecutionSystem . fromJSON ( json ) ; } catch ( SystemException | SystemArgumentException e ) { log . error ( "Unable to marshal execution system from json" , e ) ; } return executionSystem ; }
Create an execution system domain object from a json object
 @param json JSONObject that represents and ExecutionSystem
 @return ExecutionSystem that can be used in testing or persisted to database.
Create an execution system domain object from a json object @param json JSONObject that represents and ExecutionSystem @return ExecutionSystem that can be used in testing or persisted to database .