### Question:
CloplaConversor { public static List<es.bsc.clopla.domain.Host> getCloplaHosts(List<Host> hosts) { List<es.bsc.clopla.domain.Host> result = new ArrayList<>(); for (Host host: hosts) { result.add(CloplaHostFactory.getCloplaHost(host)); } 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 getCloplaHosts() { List<Host> hosts = new ArrayList<>(); hosts.add(new HostFake("host1", 1, 1024, 1, 0, 0, 0)); es.bsc.clopla.domain.Host cloplaHost = CloplaConversor.getCloplaHosts(hosts).get(0); assertEquals("host1", cloplaHost.getHostname()); assertEquals(1, cloplaHost.getNcpus()); assertEquals(1024.0, cloplaHost.getRamMb()); assertEquals(1.0, cloplaHost.getDiskGb()); }