FutureCommandCallback implements CommandCallback<ReturnType>, Future<ReturnType> { @Override public boolean isCancelled() { return false; }  @Override void onSuccess(ReturnType result); @Override void onFailure(RuntimeException exception); @Override boolean cancel(boolean mayInterruptIfRunning); @Override boolean isCancelled(); @Override boolean isDone(); @Override ReturnType get(); @Override ReturnType get(long timeout, TimeUnit unit);  }
@Test void whenIsCancelledCalled_shouldReturnFalse() throws Exception { FutureCommandCallback future = new FutureCommandCallback(); boolean cancel = future.isCancelled(); assertThat(cancel, is(false)); }