public void testParse()
throws Exception {
URI endpointURI = new URI("https://server.example.com/register/");
HTTPRequest httpRequest = new HTTPRequest(HTTPRequest.Method.POST, endpointURI.toURL());
httpRequest.setContentType(CommonContentTypes.APPLICATION_JSON);
String json = "{"
+ " \"redirect_uris\":[\"https://client.example.org/callback\","
+ " \"https://client.example.org/callback2\"],"
+ " \"client_name\":\"My Example Client\","
+ " \"client_name#ja-Jpan-JP\":\"\\u30AF\\u30E9\\u30A4\\u30A2\\u30F3\\u30C8\\u540D\","
+ " \"token_endpoint_auth_method\":\"client_secret_basic\","
+ " \"scope\":\"read write dolphin\","
+ " \"logo_uri\":\"https://client.example.org/logo.png\","
+ " \"jwks_uri\":\"https://client.example.org/my_public_keys.jwks\""
+ " }";
httpRequest.setQuery(json);
ClientRegistrationRequest request = ClientRegistrationRequest.parse(httpRequest);
assertNull(request.getAccessToken());