@Test
public void testRunnableResponse() throws ExecutionException, InterruptedException {

    ListenableFutureTask<Boolean> futureTask = ListenableFutureTask.create(new Runnable() {
        @Override
        public void run() {
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }, true);
    futureTask.run();
    Boolean result = futureTask.get();
    assertThat(result, is(true));
}