SingleCallListener singleCallListener = new SingleCallListener();
singleCallListener.expectCall();
assertFalse(spy.wasExecuted);
assertFalse(singleCallListener.wasCalled());
assertTrue(listenableFuture.isDone()); // We call AbstractFuture#set above.
// #addListener() will run the listener immediately because the Future is
// already finished (we explicitly set the result of it above).
listenableFuture.addListener(singleCallListener, sameThreadExecutor());