matrix.add(ev1);
matrix.add(ev2);
// test if combinedRaster of ev2 works
Raster combinedRaster = matrix.getConflictingRaster(ev2);
assertEquals(5, combinedRaster.getNextFree(0, 1));
assertEquals(6, combinedRaster.getNextFree(0, 2));
assertEquals(7, combinedRaster.getNextFree(7, 2));
// test if remove works
matrix.remove(ev1);
assertSame(combinedRaster, matrix.getConflictingRaster(ev2));
assertEquals(0, combinedRaster.getNextFree(0, 1));
assertEquals(1, combinedRaster.getNextFree(1, 1));
// test if bitRaster is included and combinedRaster recognizes ev1
Raster combinedRasterEv1 = matrix.getConflictingRaster(ev1);
assertEquals(9, combinedRasterEv1.getNextFree(8, 1));
assertEquals(-1, combinedRasterEv1.getNextFree(7, 2));
}