AuthScope mockScope = EasyMock.createMock(AuthScope.class);
EasyMock.replay(mockScope);
authScopes.put(scopeName, mockScope);
}
AuthInformation mockAuth = EasyMock.createMock(AuthInformation.class);
EasyMock.expect(mockAuth.getScopes()).andReturn(authScopes).anyTimes();
EasyMock.replay(mockAuth);
Map<String, AuthInformation> auth = Maps.newHashMap();
auth.put("oauth2", mockAuth);