params.put(OAuth.OAUTH_SCOPE, "read");
params.put(OAuth.OAUTH_STATE, "state");
params.put("empty_param", "");
params.put("null_param", null);
OAuthMessage message = new DummyOAuthMessage("http://www.example.com/rd", 200);
app.applyOAuthParameters(message, params);
String locationURI = message.getLocationUri();
Assert.assertTrue(locationURI.contains("3600"));
Assert.assertTrue(locationURI.contains("token_authz"));
Assert.assertTrue(locationURI.contains("code_"));
Assert.assertTrue(locationURI.contains("read"));
Assert.assertTrue(locationURI.contains("state"));