The lines above don't configure the mock, they are needed because CommandAwareRpcDispatcher is not a proper component.