TestCaseTask test = new TestCaseTask();
test.setProject(project);
MockControl taskCtrl = MockClassControl.createControl(Task.class);
Task mockTask1 = (Task)taskCtrl.getMock();
mockTask1.getProject();
taskCtrl.setReturnValue(project, 2);
mockTask1.maybeConfigure();
mockTask1.getLocation();
taskCtrl.setReturnValue(new Location(""));
mockTask1.getTaskName();
taskCtrl.setReturnValue("foo");
mockTask1.execute();
taskCtrl.setThrowable(new AssertionWarningException("XXX"));
Task mockTask2 = (Task)taskCtrl.getMock();
mockTask2.getProject();
taskCtrl.setReturnValue(project, 2);
mockTask2.maybeConfigure();
mockTask2.execute();
Task mockTask3 = (Task)taskCtrl.getMock();
mockTask3.getProject();
taskCtrl.setReturnValue(project, 2);
mockTask3.maybeConfigure();
mockTask3.getLocation();
taskCtrl.setReturnValue(new Location(""));
mockTask3.execute();
taskCtrl.setThrowable(new AssertionWarningException("XXX"));
taskCtrl.replay();
test.addTask(mockTask1);
test.addTask(mockTask2);