@Test
public void testFutureCallPollError() throws Exception {

  String opName = "testFutureCallPollError";
  Currency meta = Currency.getInstance("UAH");
  Color resp = getColor(1.0f);
  OperationSnapshot initialOperation = getOperation(opName, resp, null, meta, false);
  UnaryCallable<Integer, OperationSnapshot> initialCallable =
      mockGetOpSnapshotCallable(StatusCode.Code.OK, initialOperation);
  OperationSnapshot resultOperation = getOperation(opName, resp, null, meta, false);
  LongRunningClient longRunningClient =
      mockGetOperation(StatusCode.Code.ALREADY_EXISTS, resultOperation);
  OperationCallable<Integer, Color, Currency> callable =
      FakeCallableFactory.createOperationCallable(
          initialCallable, callSettings, initialContext, longRunningClient);
  OperationFuture<Color, Currency> future =
      callable.futureCall(2, FakeCallContext.createDefault());
  assertFutureFailMetaFail(future, null, FakeStatusCode.of(StatusCode.Code.ALREADY_EXISTS));
  assertThat(executor.getIterationsCount()).isEqualTo(0);
}