Bug 871894 - Implement Oauth helper methods for failing unit tests.