Task task2 = taskMgr.createTask(2);
Task task3 = taskMgr.createTask(3);
//
TaskDependency dep1 = taskMgr
.getDependencyCollection()
.createDependency(task1, task2, new FinishStartConstraintImpl());
TaskDependency dep2 = taskMgr
.getDependencyCollection()
.createDependency(task2, task3, new FinishStartConstraintImpl());
//
assertDependencySliceContainsDependency(task2
.getDependenciesAsDependant(), dep2);
assertDependencySliceDoesntContainDependency(task2
.getDependenciesAsDependant(), dep1);