@Test
public void testConvertAllocationsToReservationInfoEmptyAllocations() {

  long startTime = new Date().getTime();
  long step = 10000;
  int[] alloc = {};
  ReservationId id = ReservationSystemTestUtil.getNewReservationId();
  ReservationAllocation allocation = createReservationAllocation(
          startTime, startTime + 10 * step, step, alloc, id,
          createResource(4000, 2));
  List<ReservationAllocationState> infoList = ReservationSystemUtil
          .convertAllocationsToReservationInfo(
                  Collections.singleton(allocation), false);
  Assert.assertEquals(infoList.size(), 1);
  Assert.assertEquals(infoList.get(0).getReservationId().toString(),
          id.toString());
  Assert.assertTrue(infoList.get(0).getResourceAllocationRequests()
          .isEmpty());
}