Project project = (Project)prCtrl.getMock();
TaskRegistry registry = TaskRegistry.init(project);
MockControl tkCtrl1 = MockClassControl.createControl(Task.class);
Task task1 = (Task)tkCtrl1.getMock();
task1.getTaskName();
tkCtrl1.setReturnValue("blah", 2);
MockControl tkCtrl2 = MockClassControl.createControl(Task.class);
Task task2 = (Task)tkCtrl2.getMock();
task2.getTaskName();
tkCtrl2.setReturnValue("blah", 2);
MockControl tkCtrl3 = MockClassControl.createControl(Task.class);
Task task3 = (Task)tkCtrl3.getMock();
task3.getTaskName();
tkCtrl3.setReturnValue("blah", 2);
MockControl evCtrl = MockClassControl.createControl(BuildEvent.class);
BuildEvent event = (BuildEvent)evCtrl.getMock();
event.getTask();