### Question:
InfoMixin { @JsonAnyGetter public abstract Map<String, Object> getValues();  @JsonCreator static Info from(@Nullable Map<String, Object> values); @JsonAnyGetter abstract Map<String, Object> getValues();  }### Answer:
@Test public void verifyDeserialize() throws JSONException, JsonProcessingException { String json = new JSONObject().put("build", new JSONObject().put("version", "1.0.0")).put("foo", "bar") .toString(); Info info = objectMapper.readValue(json, Info.class); assertThat(info).isNotNull(); assertThat(info.getValues()).containsOnly(entry("build", Collections.singletonMap("version", "1.0.0")), entry("foo", "bar")); }