@Test
public void testFutureIgniteException() throws Exception {

    GridFutureAdapter<String> fut0 = new GridFutureAdapter<>();
    final IgniteFutureImpl<String> fut = createFuture(fut0);
    IgniteException err0 = new IgniteException("test error");
    fut0.onDone(err0);
    Exception err = (Exception)GridTestUtils.assertThrows(log, new Callable<Void>() {
        @Override public Void call() throws Exception {
            fut.get();
            return null;
        }
    }, expectedException(), "test error");
    assertExpectedException(err, err0);
}