@Test
public void testSetException()
{

    ExtendedSettableFuture<String> future = ExtendedSettableFuture.create();
    future.setException(new Exception(""));
    assertTrue(future.isDone());
    assertFalse(future.isCancelled());
    assertFalse(future.checkWasInterrupted());
    assertThrows(ExecutionException.class, future::get);
}