@Override
    public String sendCall(
            final String to, final String data, final DefaultBlockParameter defaultBlockParameter)
            throws IOException {
        final EthCall ethCall =
                besu.privCall(
                                privacyGroupId.toString(),
                                Transaction.createEthCallTransaction(getFromAddress(), to, data),
                                defaultBlockParameter)
                        .send();

        assertCallNotReverted(ethCall);
        return ethCall.getValue();
    }
@Test
    public void sendPrivCallTest() throws IOException {
        when(response.getValue()).thenReturn("test");
        when(service.send(any(), any())).thenReturn(response);

        TransactionReceiptProcessor transactionReceiptProcessor =
                new PollingPrivateTransactionReceiptProcessor(
                        besu, DEFAULT_POLLING_FREQUENCY, DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH);

        PrivateTransactionManager besuTransactionManager =
                new PrivateTransactionManager(
                        besu,
                        credentials,
                        transactionReceiptProcessor,
                        ChainIdLong.NONE,
                        PRIVATE_FROM,
                        PRIVACY_GROUP_ID,
                        RESTRICTED);

        String value = besuTransactionManager.sendCall("", "", defaultBlockParameter);
        assertEquals("test", value);
    }