### Question:
DaprClientBuilder { public DaprClient build() { if (this.useGrpc) { return buildDaprClientGrpc(); } return buildDaprClientHttp(); } DaprClientBuilder(); DaprClientBuilder withObjectSerializer(DaprObjectSerializer objectSerializer); DaprClientBuilder withStateSerializer(DaprObjectSerializer stateSerializer); DaprClient build();  }### Answer:
@Test public void build() { DaprObjectSerializer objectSerializer = mock(DaprObjectSerializer.class); when(objectSerializer.getContentType()).thenReturn("application/json"); DaprObjectSerializer stateSerializer = mock(DaprObjectSerializer.class); DaprClientBuilder daprClientBuilder = new DaprClientBuilder(); daprClientBuilder.withObjectSerializer(objectSerializer); daprClientBuilder.withStateSerializer(stateSerializer); DaprClient daprClient = daprClientBuilder.build(); assertNotNull(daprClient); }