String output = response.readEntity(String.class);
throw new Exception("unreachable!");
}
catch (ProcessingException pe)
{
UnauthorizedSignatureException e = (UnauthorizedSignatureException)pe.getCause();
Assert.assertEquals("Failed to verify signatures:\r\n Failed to verify signature.", e.getMessage());
}
response.close();
}