assertFalse(params.getBypassSpecCache());
assertEquals("stuff", params.getRequestOption("random"));
}
private FakeHttpServletRequest makeDummyRequest() throws Exception {
FakeHttpServletRequest req = new FakeHttpServletRequest();
req.setParameter("OAUTH_USE_TOKEN", true, "never");
req.setParameter("OAUTH_SERVICE_NAME", true, "service");
req.setParameter("OAUTH_TOKEN_NAME", true, "token");
req.setParameter("OAUTH_REQUEST_TOKEN", true, "reqtoken");
req.setParameter("OAUTH_REQUEST_TOKEN_SECRET", true, "secret");
req.setParameter("oauthState", true, "state");
req.setParameter("bypassSpecCache", true, "1");
req.setParameter("signOwner", true, "false");
req.setParameter("signViewer", true, "false");
req.setParameter("random", true, "stuff");
return req;
}