outputStream = new ServletOutputStreamStub();
when(resp.getOutputStream()).thenReturn(outputStream);
outputWriter = new StringWriter();
when(resp.getWriter()).thenReturn(new PrintWriter(outputWriter));
OAuthServiceProvider serviceProvider = new OAuthServiceProvider("", "", "");
consumer = new OAuthConsumer("", "consumerkey", "consumersecret", serviceProvider);
servlet =
new DataApiOAuthServlet(REQUEST_TOKEN_PATH,
AUTHORIZE_TOKEN_PATH, ACCESS_TOKEN_PATH, GET_ALL_TOKENS_PATH,