* transforms a List<List<Assignment>> into a map of Entry<Resource, List<Assignment>>
*/
public Map<Resource, Set<Assignment>> newResources(List<Assignment>... resources) {
Map<Resource, Set<Assignment>> result = FastMap.newInstance();
for (List<Assignment> assignments : resources) {
ResourceForTest res = new ResourceForTest();
Set<Assignment> set = FastSet.newInstance();
for (Assignment ass : assignments) {
set.add(ass);
res.getEvents().add(ass.getEvent());
}
result.put(res, set);
}
return result;
}