### Question:
ResendResponse { public Optional<byte[]> getPayload() { return Optional.ofNullable(payload); } ResendResponse();  ResendResponse(byte[] payload); Optional<byte[]> getPayload(); void setPayload(byte[] payload);  }### Answer:
@Test public void defaultInstanceHasNoPayload() { ResendResponse resendResponse = new ResendResponse(); assertThat(resendResponse.getPayload()).isNotPresent(); }
@Test public void createWithPayload() { ResendResponse resendResponse = new ResendResponse("HELLOW".getBytes()); assertThat(resendResponse.getPayload()).isPresent(); }