@InvokeOnHeader(Web3jConstants.ETH_SUBMIT_HASHRATE)
    void ethSubmitHashrate(Message message) throws IOException {
        String hashrate = message.getHeader(Web3jConstants.ETH_HASHRATE, configuration::getHashrate, String.class);
        String clientId = message.getHeader(Web3jConstants.CLIENT_ID, configuration::getClientId, String.class);
        Request<?, EthSubmitHashrate> request = web3j.ethSubmitHashrate(hashrate, clientId);
        setRequestId(message, request);
        EthSubmitHashrate response = request.send();
        boolean hasError = checkForError(message, response);
        if (!hasError) {
            message.setBody(response.submissionSuccessful());
        }
    }
@Test
    public void ethSubmitHashrateTest() throws Exception {
        EthSubmitHashrate response = Mockito.mock(EthSubmitHashrate.class);
        Mockito.when(mockWeb3j.ethSubmitHashrate(any(), any())).thenReturn(request);
        Mockito.when(request.send()).thenReturn(response);
        Mockito.when(response.submissionSuccessful()).thenReturn(Boolean.TRUE);

        Exchange exchange = createExchangeWithBodyAndHeader(null, OPERATION, Web3jConstants.ETH_SUBMIT_HASHRATE);
        template.send(exchange);
        Boolean body = exchange.getIn().getBody(Boolean.class);
        assertTrue(body);
    }