### Question:
DaprHttpClient implements DaprClient { @Override public Mono<byte[]> invokeActorMethod(String actorType, String actorId, String methodName, byte[] jsonPayload) { String url = String.format(ACTOR_METHOD_RELATIVE_URL_FORMAT, actorType, actorId, methodName); Mono<DaprHttp.Response> responseMono = this.client.invokeApi(DaprHttp.HttpMethods.POST.name(), url, null, jsonPayload, null, null); return responseMono.map(r -> r.getBody()); } DaprHttpClient(DaprHttp client); @Override Mono<byte[]> invokeActorMethod(String actorType, String actorId, String methodName, byte[] jsonPayload);  }### Answer:
@Test public void invokeActorMethod() { DaprHttp daprHttpMock = mock(DaprHttp.class); mockInterceptor.addRule() .post("http: .respond(EXPECTED_RESULT); DaprHttp daprHttp = new DaprHttpProxy(Properties.SIDECAR_IP.get(), 3000, okHttpClient); DaprHttpClient = new DaprHttpClient(daprHttp); Mono<byte[]> mono = DaprHttpClient.invokeActorMethod("DemoActor", "1", "Payment", "".getBytes()); assertEquals(new String(mono.block()), EXPECTED_RESULT); }