@Override
    public void close() {
        this.displayResultExecutorService.shutdown();
    }
@Test
    void testFailedBatchResult() {
        final Configuration testConfig = new Configuration();
        testConfig.set(EXECUTION_RESULT_MODE, ResultMode.TABLEAU);
        testConfig.set(RUNTIME_MODE, RuntimeExecutionMode.BATCH);
        ResultDescriptor resultDescriptor =
                new ResultDescriptor(CliClientTestUtils.createTestClient(schema), testConfig);
        TestChangelogResult changelogResult =
                new TestChangelogResult(
                        () -> {
                            throw new SqlExecutionException("query failed");
                        });

        CliTableauResultView view =
                new CliTableauResultView(
                        terminal, resultDescriptor, changelogResult, System.currentTimeMillis());

        assertThatThrownBy(view::displayResults)
                .satisfies(anyCauseMatches(SqlExecutionException.class, "query failed"));
        view.close();
        assertThat(changelogResult.closed).isTrue();
    }