public void failedUnboundGenericCallback() throws InterruptedException {
final Invocation invocation = ClientBuilder.newClient().target("http://localhost:888/").request().buildGet();
final CountDownLatch latch = new CountDownLatch(1);
final MyUnboundCallback<String> callback = new MyUnboundCallback<String>(latch);
invocation.submit(callback);
latch.await(1, TimeUnit.SECONDS);
assertThat(callback.getThrowable(), CoreMatchers.instanceOf(ProcessingException.class));
assertThat(callback.getThrowable().getCause(), CoreMatchers.instanceOf(IllegalArgumentException.class));