assertTrue(new ResponseType("token").equals(responseType));
Map<String,String> params = resp.toParameters();
assertEquals(TOKEN.getValue(), params.get("access_token"));
assertEquals(STATE, new State(params.get("state")));
assertEquals(TOKEN.getType(), new AccessTokenType(params.get("token_type")));
assertEquals("3600", params.get("expires_in"));
assertEquals(4, params.size());
URI uri = resp.toURI();