### Question:
DaprHttpClient implements DaprClient { @Override public Mono<byte[]> getActorState(String actorType, String actorId, String keyName) { String url = String.format(ACTOR_STATE_KEY_RELATIVE_URL_FORMAT, actorType, actorId, keyName); Mono<DaprHttp.Response> responseMono = this.client.invokeApi(DaprHttp.HttpMethods.GET.name(), url, null, "", null, null); return responseMono.map(r -> { if ((r.getStatusCode() != 200) && (r.getStatusCode() != 204)) { throw new IllegalStateException( String.format("Error getting actor state: %s/%s/%s", actorType, actorId, keyName)); } return r.getBody(); }); } DaprHttpClient(DaprHttp client); @Override Mono<byte[]> getActorState(String actorType, String actorId, String keyName); @Override Mono<Void> saveActorStateTransactionally(String actorType, String actorId, byte[] data); @Override Mono<Void> registerActorReminder(String actorType, String actorId, String reminderName, byte[] data); @Override Mono<Void> unregisterActorReminder(String actorType, String actorId, String reminderName); @Override Mono<Void> registerActorTimer(String actorType, String actorId, String timerName, byte[] data); @Override Mono<Void> unregisterActorTimer(String actorType, String actorId, String timerName);  }### Answer:
@Test public void getActorState() { mockInterceptor.addRule() .get("http: .respond(EXPECTED_RESULT); DaprHttp daprHttp = new DaprHttpProxy(Properties.SIDECAR_IP.get(), 3000, okHttpClient); DaprHttpClient = new DaprHttpClient(daprHttp); Mono<byte[]> mono = DaprHttpClient.getActorState("DemoActor", "1", "order"); assertEquals(new String(mono.block()), EXPECTED_RESULT); }