UtilizationModelNull implements UtilizationModel { @Override public double getUtilization(final double time) { return 0; }  @Override Simulation getSimulation(); @Override Unit getUnit(); @Override UtilizationModel setSimulation(final Simulation simulation); @Override double getUtilization(final double time); @Override double getUtilization(); @Override boolean isOverCapacityRequestAllowed(); @Override UtilizationModel setOverCapacityRequestAllowed(boolean allow);  }
@Test public void testGetUtilizationForDifferentTimes() { final UtilizationModel instance = UtilizationModel.NULL; final String msg = String.format( "For any time (even a randomly defined one), the utilization has to be equals to %d", EXPECTED_UTILIZATION); for (int time = 0; time < 10000; time++) { assertEquals(EXPECTED_UTILIZATION, instance.getUtilization(time), msg); } }