private void setRequestId(Message message, Request<?, ?> request) {
        final Long id = message.getHeader(Web3jConstants.ID, Long.class);
        LOG.debug("setRequestId {}", id);
        if (id != null) {
            request.setId(id);
        }
    }
@Test
    public void setRequestIdTest() throws Exception {
        Web3ClientVersion response = Mockito.mock(Web3ClientVersion.class);
        Mockito.when(mockWeb3j.web3ClientVersion()).thenReturn(request);
        Mockito.when(request.send()).thenReturn(response);

        Exchange exchange = createExchangeWithBodyAndHeader(null, Web3jConstants.ID, Long.valueOf(1));
        template.send(exchange);
        Mockito.verify(request).setId(1L);
    }