Project project = (Project)prCtrl.getMock();
TaskRegistry registry = TaskRegistry.init(project);
MockControl tkCtrl = MockClassControl.createControl(MacroDef.class);
MacroDef task = (MacroDef)tkCtrl.getMock();
task.getTaskName();
tkCtrl.setReturnValue("blah");
MockControl evCtrl = MockClassControl.createControl(BuildEvent.class);
BuildEvent event = (BuildEvent)evCtrl.getMock();
event.getTask();