Task t1 = getTaskManager().createTask();
Task t2 = getTaskManager().createTask();
Task t3 = getTaskManager().createTask();
Task t4 = getTaskManager().createTask();
getTaskManager().getDependencyCollection().createDependency(t4, t3, new FinishStartConstraintImpl());
getTaskManager().getDependencyCollection().createDependency(t1, t3, new FinishFinishConstraintImpl());
getTaskManager().getDependencyCollection().createDependency(t2, t4, new FinishFinishConstraintImpl());
TaskMutator mutator = t3.createMutator();
mutator.setDuration(getTaskManager().createLength(3));
mutator.commit();
getTaskManager().getAlgorithmCollection().getRecalculateTaskScheduleAlgorithm().run(t3);
//