@Test
public void performResultFutureIsCancelled() {

  // Arrange
  Object expectedResult = new Object();
  Worker<Object> worker = new Worker<>(expectedResult);
  // Act
  Object actualResult = worker.perform(Futures::immediateCancelledFuture);
  // Assert
  assertEquals(expectedResult, actualResult);
}