logger.deferredShutdown();
fail("Expected BuildException");
} catch (BuildException be) {
assertEquals("Wrong message", "foo", be.getMessage());
}
assertTrue("Kill not called on BgProcess", task.killCalled());
prCtrl.verify();
trCtrl.verify();
rfCtrl.verify();
}