assertTrue("Wrong token: " + result, result.contains("\"expires_in\":"));
}
@Test
public void testExceptionSerialization() throws Exception {
InvalidClientException exception = new InvalidClientException("FOO");
exception.addAdditionalInformation("foo", "bar");
String result = new ObjectMapper().writeValueAsString(exception);
// System.err.println(result);
assertTrue("Wrong result: "+result, result.contains("\"error\":\"invalid_client\""));
assertTrue("Wrong result: "+result, result.contains("\"error_description\":\"FOO\""));
assertTrue("Wrong result: "+result, result.contains("\"foo\":\"bar\""));