assertEquals(token.getSecret(), "valueForSecret");
}
@Test
public void testXauthSuccessWithExtra() {
Response r = mock(Response.class);
when(r.getCode()).thenReturn(201);
when(r.getBody()).thenReturn("oauth_token=valueForToken&oauth_token_secret=valueForSecret&other=paramisokay");
Token token = rb.clearXAuth(r);
assertEquals(token.getToken(), "valueForToken");
assertEquals(token.getSecret(), "valueForSecret");
}