Additional mocking so that RemoteDoc can be unit tested.