assertEquals("Hello World", out);
}
@Test
public void testHttpClientProxyException() throws Exception {
MyCoolService proxy = new ProxyBuilder(context).endpoint("direct:cool").build(MyCoolService.class);
try {
proxy.hello("Kaboom");
fail("Should have thrown exception");
} catch (UndeclaredThrowableException e) {
HttpOperationFailedException cause = assertIsInstanceOf(HttpOperationFailedException.class, e.getCause());