assertEquals(0, eventRaster.getNextFree(0, 1));
assertEquals(LENGTH, eventRaster.getLastFreePlus1(0));
assertEquals(LENGTH, eventRaster.getLastFreePlus1(LENGTH - 1));
assertEquals(-1, eventRaster.getLastFreePlus1(LENGTH));
Assignment ass = newAssignment(0, 5);
assertTrue(eventRaster.add(ass));
assertEquals(5, eventRaster.getNextFree(0, 1));
eventRaster.remove(ass);
try {
// should NOT add an event which stays in conflicts to root event
eventRaster.setRoot(ass);
Assignment tmpEvent = newAssignment(3, 1);
eventRaster.add(tmpEvent);
assertTrue(false);
} catch (Throwable ex) {
assertTrue(true);
}