### Question:
RandomHostSelector implements HostSelector { @Override public List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts) { return selectHosts(candidateHosts, nHosts); }  @Override List<Host> selectHostsToBeTurnedOn(List<Host> candidateHosts, int nHosts); @Override List<Host> selectHostsToBeTurnedOn(List<Host> candidateHosts, int minCpus, int maxCpus); @Override List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int nHosts); @Override List<Host> selectHostsToBeTurnedOff(List<Host> candidateHosts, int minCpus, int maxCpus);  }### Answer:
@Test public void selectHostsToBeTurnedOff() { assertEquals(2, randomHostSelector.selectHostsToBeTurnedOff(getTestHosts(), 2).size()); }
@Test public void selectHostsToBeTurnedOffWhenTheGivenNumberIsGreaterThanTheNumberOfHosts() { assertEquals(getTestHosts().size(), randomHostSelector.selectHostsToBeTurnedOff(getTestHosts(), getTestHosts().size() + 1).size()); }