}
@Test
public void readValueWithObjects() throws Exception {
String accessToken = "{\"error\": [\"invalid\",\"client\"], \"error_description\": {\"some\":\"detail\"}, \"foo\": [\"bar\"]}";
OAuth2Exception result = mapper.readValue(accessToken, OAuth2Exception.class);
assertEquals("{some=detail}",result.getMessage());
assertEquals("{foo=[bar]}",result.getAdditionalInformation().toString());
}