@Override
    public boolean isDone() {
        return state.isDoneState();
    }
@Test
    public void testIsDone() throws Exception {
        assertThat(promise.isDone()).isEqualTo(false);
        promise.set("Done");
        assertThat(promise.isDone()).isEqualTo(true);
    }