### Question:
AveragePowerEnergyPredictor extends AbstractEnergyPredictor { @Override public EnergyUsagePrediction getHostPredictedEnergy(Host host, Collection<VM> virtualMachines, TimePeriod duration) { return predictTotalEnergy(host, duration); } AveragePowerEnergyPredictor();  AveragePowerEnergyPredictor(PropertiesConfiguration config); @Override EnergyUsagePrediction getHostPredictedEnergy(Host host, Collection<VM> virtualMachines, TimePeriod duration); @Override EnergyUsagePrediction getVMPredictedEnergy(VM vm, Collection<VM> virtualMachines, Host host, TimePeriod timePeriod); @Override double predictPowerUsed(Host host); @Override double predictPowerUsed(Host host, double usageCPU); @Override double getSumOfSquareError(Host host); @Override double getRootMeanSquareError(Host host); @Override String toString(); @Override void printFitInformation(Host host);  }### Answer:
@Test public void testGetHostPredictedEnergy() { System.out.println("getHostPredictedEnergy"); EnergyUsagePrediction prediction; addVMs(vm1); addVMs(vm2); AveragePowerEnergyPredictor predictor = new AveragePowerEnergyPredictor(); host.setRamMb(32244); prediction = predictor.getHostPredictedEnergy(host, vms); System.out.println("Host: " + host.getHostName()); System.out.println("VM Count: " + vms.size()); System.out.println("store values size is: " + host.getCalibrationData().size()); System.out.println("watts: " + prediction.getAvgPowerUsed() + " energy: " + prediction.getTotalEnergyUsed()); }