### Question:
CloplaConversor { public static List<es.bsc.clopla.domain.Vm> getCloplaVms(List<VmDeployed> vms, List<Vm> vmsToDeploy, List<es.bsc.clopla.domain.Host> hosts, boolean assignVmsToHosts) { List<es.bsc.clopla.domain.Vm> result = new ArrayList<>(); for (int i = 0; i < vms.size(); ++i) { result.add(getCloplaVm((long) i, vms.get(i), hosts, assignVmsToHosts)); } for (int i = vms.size(); i < vms.size() + vmsToDeploy.size(); ++i) { result.add(getCloplaVmToDeploy((long) i, vmsToDeploy.get(i - vms.size()))); } return result; } private  CloplaConversor(); static List<es.bsc.clopla.domain.Vm> getCloplaVms(List<VmDeployed> vms,
                                                             List<Vm> vmsToDeploy,
                                                             List<es.bsc.clopla.domain.Host> hosts,
                                                             boolean assignVmsToHosts); static List<es.bsc.clopla.domain.Host> getCloplaHosts(List<Host> hosts); static VmPlacementConfig getCloplaConfig(SchedAlgorithmNameEnum schedAlgorithmNameEnum,
                                                    RecommendedPlanRequest recommendedPlanRequest,
                                                    EnergyModeller energyModeller, PricingModeller pricingModeller); static RecommendedPlan getRecommendedPlan(ClusterState clusterState); static List<es.bsc.vmmanagercore.models.vms.Vm> cloplaVmsToVmmType(List<es.bsc.clopla.domain.Vm> vms);  }### Answer:
@Test public void getCloplaVms() { List<VmDeployed> vmsDeployed = new ArrayList<>(); vmsDeployed.add(new VmDeployed("vm", "fakeImage", 1, 1024, 1, 0, "", "appId", "vmId", "172.16.8.1", "ACTIVE", new Date(), "host1")); Vm cloplaVm = CloplaConversor.getCloplaVms(vmsDeployed, new ArrayList<es.bsc.vmmanagercore.models.vms.Vm>(), new ArrayList<es.bsc.clopla.domain.Host>(), false).get(0); assertEquals(1, cloplaVm.getNcpus()); assertEquals(1024, cloplaVm.getRamMb()); assertEquals(1, cloplaVm.getDiskGb()); assertEquals("appId", cloplaVm.getAppId()); assertEquals("vmId", cloplaVm.getAlphaNumericId()); assertNull(cloplaVm.getHost()); }