@Test
	public void expires() {
		ReservationList test = new ReservationList();
		Vm vm = new Vm(0, 0, 0, 0, 0, 0, 0, null, null);
		for(int i = 20000; i > 0; i--) {
			try {
				test.add(new VmReservation(i*Math.random(),i*Math.random(),vm));
			} catch (NegativeTimeException e) {
				fail();
			}
		}
		
		Iterator<VmReservation> it = test.iterator();
		VmReservation previous = it.next();
		assertTrue(previous.doesExpire()&&previous.getStopTime()!=-1);
		while(it.hasNext()) {
			VmReservation temp = it.next();
			assertTrue(previous.getStartTime()<temp.getStartTime());
			assertTrue(temp.doesExpire()&&temp.getStopTime()!=-1);
			previous = temp;
		}
	}