### Question:
DaprClientBuilder { public DaprClientBuilder withStateSerializer(DaprObjectSerializer stateSerializer) { if (stateSerializer == null) { throw new IllegalArgumentException("State serializer is required"); } this.stateSerializer = stateSerializer; return this; } DaprClientBuilder(); DaprClientBuilder withObjectSerializer(DaprObjectSerializer objectSerializer); DaprClientBuilder withStateSerializer(DaprObjectSerializer stateSerializer); DaprClient build();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void noStateSerializer() { new DaprClientBuilder().withStateSerializer(null); }