try {
client.execute(getServerHttp(), httppost, context);
} catch (ClientProtocolException ex) {
Assert.assertTrue(ex.getCause() instanceof NonRepeatableRequestException);
NonRepeatableRequestException nonRepeat = (NonRepeatableRequestException)ex.getCause();
Assert.assertTrue(nonRepeat.getCause() instanceof IOException);
Assert.assertEquals(failureMsg, nonRepeat.getCause().getMessage());
throw ex;
}
}