}
public void testLoggingDisabled() throws Exception {
MockControl tkCtrl = MockClassControl.createControl(Task.class);
Task task = (Task)tkCtrl.getMock();
task.log("foobar", 2);
tkCtrl.replay();
LoggingRedirector redirector = new LoggingRedirector(task);
ExecuteStreamHandler handler = redirector.createHandler();