{
Assert.assertTrue(e.getCause().getClass().isAssignableFrom(JsonParseException.class));
JsonParseException jpe = (JsonParseException) e.getCause();
Assert.assertEquals(3, jpe.getLocation().getLineNr());
Assert.assertEquals(3, jpe.getLocation().getLineNr());
MalformedUriTemplateException mte = (MalformedUriTemplateException) jpe.getCause();
Assert.assertEquals(40, mte.getLocation());
}
catch (IOException e)
{
Assert.fail();
}