@Test public final void testResourceSkyline() {

  final RLESparseResourceAllocation skylineList =
      jobMetaData.getResourceSkyline().getSkylineList();
  final int containerCPU =
      jobMetaData.getResourceSkyline().getContainerSpec().getVirtualCores();
  int k;
  for (k = 0; k < 5; k++) {
    Assert.assertEquals(0,
        skylineList.getCapacityAtTime(k).getVirtualCores() / containerCPU);
  }
  for (k = 5; k < 15; k++) {
    Assert.assertEquals(1,
        skylineList.getCapacityAtTime(k).getVirtualCores() / containerCPU);
  }
  for (k = 15; k < 605; k++) {
    Assert.assertEquals(2,
        skylineList.getCapacityAtTime(k).getVirtualCores() / containerCPU);
  }
  for (k = 605; k < 615; k++) {
    Assert.assertEquals(1,
        skylineList.getCapacityAtTime(k).getVirtualCores() / containerCPU);
  }
  Assert.assertEquals(0,
      skylineList.getCapacityAtTime(615).getVirtualCores() / containerCPU);
}