ImmutableReplyTarget implements ReplyTarget { static ReplyTarget fromJson(final JsonObject jsonObject) { return fromJsonOptional(jsonObject).orElseThrow(() -> new JsonMissingFieldException(JsonFields.ADDRESS)); } private  ImmutableReplyTarget(final Builder builder); @Override String getAddress(); @Override Optional<HeaderMapping> getHeaderMapping(); @Override Set<ResponseType> getExpectedResponseTypes(); @Override ReplyTarget.Builder toBuilder(); @Override JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> predicate); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void fromJsonReturnsExpected() { final ReplyTarget actual = ImmutableReplyTarget.fromJson(REPLY_TARGET_JSON); assertThat(actual).isEqualTo(REPLY_TARGET); }