There is already a method for this in `HudsonTestCase` as far as I know.