### Question:
EndpointsMixin { @JsonCreator public static Endpoints of(@Nullable Collection<Endpoint> endpoints) { return Endpoints.of(endpoints); }  @JsonCreator static Endpoints of(@Nullable Collection<Endpoint> endpoints);  }### Answer:
@Test public void verifyDeserialize() throws JSONException, JsonProcessingException { String json = new JSONArray().put(new JSONObject().put("id", "info").put("url", "http: .put(new JSONObject().put("id", "health").put("url", "http: Endpoints endpoints = objectMapper.readValue(json, Endpoints.class); assertThat(endpoints).isNotNull(); assertThat(endpoints).containsExactlyInAnyOrder(Endpoint.of("info", "http: Endpoint.of("health", "http: }