### Question:
EndpointMixin { @JsonCreator public static Endpoint of(@JsonProperty("id") String id, @JsonProperty("url") String url) { return Endpoint.of(id, url); }  @JsonCreator static Endpoint of(@JsonProperty("id") String id, @JsonProperty("url") String url);  }### Answer:
@Test public void verifySerialize() throws IOException { Endpoint endpoint = Endpoint.of("info", "http: JsonContent<Endpoint> jsonContent = jsonTester.write(endpoint); assertThat(jsonContent).extractingJsonPathStringValue("$.id").isEqualTo("info"); assertThat(jsonContent).extractingJsonPathStringValue("$.url").isEqualTo("http: }