### Question:
ModelConverter { public static ApplicationManagerMessage jsonToApplicationManagerMessage(String json) { return fromJSONToObject(ApplicationManagerMessage.class, json); }  static String objectCollectionToXML(Collection collection); static String objectCollectionToJSON(Collection collection); static Collection xmlCollectionToObject(String xml); static Collection jsonCollectionToObject(String xml); static String objectSLAApplicationTermToXML(SLAApplicationTerms slaAppTerms); static String objectSLAApplicationTermToJSON(SLAApplicationTerms slaAppTerms); static SLAApplicationTerms xmlSLAApplicationTermsToObject(String xml); static SLAApplicationTerms jsonSLAApplicationTermsToObject(String jsonString); static String objectApplicationToXML(Application application); static String objectApplicationToJSON(Application application); static Application xmlApplicationToObject(String xml); static Application jsonApplicationToObject(String jsonString); static String slaLitmitsToXML(SLALimits slaLimits); static SLALimits xmlSLALimitsToObject(String xml); static String objectRootToXML(Root root); static String applicationManagerMessageToJSON(ApplicationManagerMessage amMessage); static ApplicationManagerMessage jsonToApplicationManagerMessage(String json); static Deployment xmlDeploymentToObject(String xml); static Deployment jsonDeploymentToObject(String json); static String objectDeploymentToJSON(Deployment deployment); static String objectDeploymentToXML(Deployment deployment); static VM xmlVMToObject(String xml); static String objectVMToXML(VM vm); static Agreement xmlAgreementToObject(String xml); static String objectAgreementToXML(Agreement agreement); static String objectEnergyMeasurementToXML(EnergyMeasurement energyMeasurement); static String objectEnergyMeasurementToJSON(EnergyMeasurement energyMeasurement); static EnergyMeasurement xmlEnergyMeasurementToObject(String xml); static String objectPowerMeasurementToXML(PowerMeasurement powerMeasurement); static String objectPowerMeasurementToJSON(PowerMeasurement powerMeasurement); static PowerMeasurement xmlPowerMeasurementToObject(String xml); static String objectCostToXML(Cost cost); static String objectCostToJSON(Cost cost); static Cost xmlCostToObject(String xml);  }### Answer:
@Test public void fromJSONtoApplicationManagerMessage() { String json = "{" + "\"applicationId\" : \"app-id\"," + "\"deploymentId\" : \"deplo-id\"," + "\"status\" : \"status\"," + "\"vms\" : [ {" + "\"vmId\" : \"eee\"," + "\"iaasVmId\" : \"bbb\"," + "\"iaasMonitoringVmId\" : \"aaa\"," + "\"ovfId\" : \"ccc\"," + "\"status\" : \"ddd\"" + "}, {" + "\"vmId\" : \"www\"," + "\"iaasVmId\" : \"yyy\"," + "\"iaasMonitoringVmId\" : \"zzz\"," + "\"ovfId\" : \"xxx\"," + "\"status\" : \"ttt\"" + "} ]" + "}"; ApplicationManagerMessage amMessage = ModelConverter.jsonToApplicationManagerMessage(json); assertEquals("app-id", amMessage.getApplicationId()); assertEquals("deplo-id", amMessage.getDeploymentId()); assertEquals("status", amMessage.getStatus()); assertEquals("eee", amMessage.getVms().get(0).getVmId()); assertEquals("bbb", amMessage.getVms().get(0).getIaasVmId()); assertEquals("aaa", amMessage.getVms().get(0).getIaasMonitoringVmId()); assertEquals("ccc", amMessage.getVms().get(0).getOvfId()); assertEquals("ddd", amMessage.getVms().get(0).getStatus()); assertEquals("www", amMessage.getVms().get(1).getVmId()); assertEquals("yyy", amMessage.getVms().get(1).getIaasVmId()); assertEquals("zzz", amMessage.getVms().get(1).getIaasMonitoringVmId()); assertEquals("xxx", amMessage.getVms().get(1).getOvfId()); assertEquals("ttt", amMessage.getVms().get(1).getStatus()); }