### Question:
ClusterState { public int getTotalNumberOfCpusInOnServers() { int result = 0; for (Host host: getOnHosts()) { result += host.getTotalCpus(); } return result; } ClusterState(List<Vm> vms, List<Host> hosts); List<Host> getTurnedOffHosts(); List<Host> getHostsWithoutVmsAndSwitchedOn(); int getTotalNumberOfCpusInOnServers();  }### Answer:
@Test public void getTotalNumberOfCpusOnServers() { assertEquals(5, getTestClusterState().getTotalNumberOfCpusInOnServers()); }