@Override
    public int handleExecutionException(Exception exception, CommandLine commandLine, CommandLine.ParseResult parseResult) {
        PrintWriter errorWriter = commandLine.getErr();
        CommandLine.Help.ColorScheme colorScheme = commandLine.getColorScheme();

        // Print exception
        String stackTrace = ExceptionUtil.toString(exception);
        errorWriter.println(colorScheme.errorText(stackTrace));

        // Print usage
        commandLine.usage(errorWriter, colorScheme);
        return 0;
    }
@Test
    void test_handleExecutionException_withoutExceptionMessage() {
        // when
        new ExceptionHandler().handleExecutionException(exception, commandLine, parseResult);
        // then
        verify(exception, times(1)).printStackTrace(any(PrintWriter.class));
        verify(commandLine, times(1)).usage(errorWriter, colorScheme);
    }