If the call to startMuleContext is supposed to fail, then you need to invoke fail method to catch a test failure.