@Test(expected = PlanningException.class)
public void testOutOfRange() throws PlanningException {

  maxPeriodicity = 100;
  Plan plan = new InMemoryPlan(queueMetrics, policy, agent, totalCapacity, 1L,
      resCalc, minAlloc, maxAlloc, planName, replanner, true, maxPeriodicity,
      context, new UTCClock());
  // we expect the plan to complaint as the range 330-150 > 50
  RLESparseResourceAllocation availableBefore =
      plan.getAvailableResourceOverTime(user, null, 150, 330, 50);
}