title: Mock OAuth server for testing
body: <p>I'd like to know if it is possible to simulate the oAuth(1,2) authentication flow. I'd like to test without the need to connect to the provider itself. It should be possible as it is just some communication exchange. I'm not looking for something like <a href="https://stackoverflow.com/q/12521385/2944265">this</a> where they still communicate with remote server. I'd like to be completely offline, when testing.</p>
  
  <p>Maybe I can run my own oAuth server. I should be using Google oAuth services so the server should behave same like they do. Does google provide some code for their oAuth server, or is it possible to create some fake server. Note the test should be more integration test. I would like to command the server to return some predefined responses. Switching to live oAuth providers will be just changing the remote URL.</p>
  
  <p>Maybe just some http server is ok, I just need to care about the proper format of communicated messages.</p>