* 3) trusted parameter can override existing parameter.
*/
@Test
public void testTrustedParamsMisc() throws Exception {
serviceProvider.setCheckTrustedParams(true);
MakeRequestClient client = makeNonSocialClient("owner", "owner", GADGET_URL);
client.setTrustedParam("oauth_magic", "foo");
client.setTrustedParam("opensocial_magic", "bar");
client.setTrustedParam("xoauth_magic", "quux_overridden");
client.setTrustedParam("xoauth_magic", "quux");
client.setTrustedParam("opensocial_owner_id", "overridden_opensocial_owner_id");
HttpResponse response = client.sendGet(FakeOAuthServiceProvider.RESOURCE_URL);
assertEquals("", response.getResponseAsString());
client.approveToken("user_data=hello-oauth");
response = client.sendGet(FakeOAuthServiceProvider.RESOURCE_URL);
assertEquals("User data is hello-oauth", response.getResponseAsString());
assertEquals(12, serviceProvider.getTrustedParamCount());
}