ScriptServiceUtil { public static RequestData transferObjectToRequestData(StepDataTO to) { RequestData ret = new RequestData(); ret.setKey(to.getKey()); ret.setType(to.getType()); ret.setValue(to.getValue()); RequestDataPhase phase = null; try { phase = RequestDataPhase.valueOf(to.getPhase() != null ? to.getPhase() : RequestDataPhase.POST_REQUEST .name()); } catch (Exception e) { LOG.warn("Error setting phase: " + e.toString()); } ret.setPhase(phase != null ? phase : RequestDataPhase.POST_REQUEST); return ret; } private  ScriptServiceUtil(); static ScriptTO scriptToTransferObject(Script script); static List<ScriptStepTO> scriptStepsToTransferobjectList(List<ScriptStep> steps); static Script transferObjectToScript(ScriptTO to); static ScriptStepTO scriptStepToTransferObject(ScriptStep step); static ScriptStepTO copy(ScriptStepTO step); static ScriptStep transferObjectToScriptStep(ScriptStepTO to); static StepDataTO requestDataToTransferObject(RequestData data); static StepDataTO copyStepDataTO(StepDataTO data); static RequestData transferObjectToRequestData(StepDataTO to); static ScriptDescription scriptToScriptDescription(Script script); static Script scriptDescriptionToScript(ScriptDescription sd); static ExternalScriptTO externalScriptToTO(ExternalScript script); static ExternalScript TOToExternalScript(ExternalScriptTO script);  }
@Test public void testTransferObjectToRequestData_1() throws Exception { StepDataTO to = new StepDataTO(); to.setValue(""); to.setPhase(""); to.setType(""); to.setKey(""); RequestData result = ScriptServiceUtil.transferObjectToRequestData(to); assertNotNull(result); }