public void cancelOperation(OperationHandle operationHandle) {
        getOperation(operationHandle).cancel();
    }
@Test
    void testCancelOperation() throws Exception {
        CountDownLatch endRunningLatch = new CountDownLatch(1);
        OperationHandle operationHandle =
                operationManager.submitOperation(
                        () -> {
                            endRunningLatch.await();
                            return defaultResultSet;
                        });

        EXECUTOR_EXTENSION
                .getExecutor()
                .submit(() -> operationManager.cancelOperation(operationHandle));
        operationManager.awaitOperationTermination(operationHandle);

        assertThat(operationManager.getOperationInfo(operationHandle).getStatus())
                .isEqualTo(OperationStatus.CANCELED);
    }