};
URL url = new URL("https://myhost.com/somepath?with=some&query=params&too");
when(details.getId()).thenReturn("resourceId");
OAuthConsumerToken token = support.getTokenFromProvider(details, url, "POST", null, null);
assertFalse(token.isAccessToken());
assertEquals("mytoken", token.getValue());
assertEquals("mytokensecret", token.getSecret());
assertEquals("resourceId", token.getResourceId());
}