+ @Test
+ public void testError190()
+ {
+ log.info("testError190");
+
+ requestFactory.setBody("{\"error\":{\"message\":\"Bad signature\",\"type\":\"OAuthException\",\"code\":190,\"fbtrace_id\":\"Ay2OYQrINbXOCfQpBvoxDIw\"}}");
+
+ try
+ {
+ clientTemplate.getForObject("ANY", SOME.class);
+ fail("The expected exception was not thrown");
+ }
+ catch(AccessTokenExpiredException e)
+ {
+ log.debug("{}", e.toString());
+ assertEquals(new Integer(190), e.getCode());
+ assertEquals("Bad signature", e.getMessage());
+ assertEquals(Type.OAuthException, e.getType());
+ assertEquals("Ay2OYQrINbXOCfQpBvoxDIw", e.getTraceId());
+ }
+ }
+