Add mock support to RequestDispatcherImpl.