public void testListenInPoolThreadUsesGivenExecutor() throws Exception {
ExecutorService executorService = newCachedThreadPool(
new ThreadFactoryBuilder().setDaemon(true).build());
NonListenableSettableFuture<String> abstractFuture =
NonListenableSettableFuture.create();
ExecutorSpy spy = new ExecutorSpy(executorService);
ListenableFuture<String> listenableFuture =
listenInPoolThread(abstractFuture, spy);
SingleCallListener singleCallListener = new SingleCallListener();
singleCallListener.expectCall();