private void sendResponse(Response response) {
        try {
            ((GrpcConnection) this.currentConnection).sendResponse(response);
        } catch (Exception e) {
            LOGGER.error("[{}]Error to send ack response, ackId->{}", this.currentConnection.getConnectionId(),
                    response.getRequestId());
        }
    }
@Test
    void testSendResponseWithException()
            throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException {
        GrpcConnection connection = mock(GrpcConnection.class);
        setCurrentConnection(connection, grpcClient);
        doThrow(new RuntimeException("test")).when(connection).sendResponse(any(Response.class));
        Method sendResponseMethod = GrpcClient.class.getDeclaredMethod("sendResponse", Response.class);
        sendResponseMethod.setAccessible(true);
        sendResponseMethod.invoke(grpcClient, new ConnectResetResponse());
        // don't throw any exception.
    }