}
@Test
public void testBadRestURI()
{
final EchoService client = getEchoClient(_client, URI.create("/unknown-service"));
if (!(client instanceof RestEchoClient))
{
return;
}
final String msg = "This is a simple echo message";
final FutureCallback<String> callback = new FutureCallback<String>();
client.echo(msg, callback);
try
{
callback.get();
Assert.fail("Should have thrown an exception");