### Question:
InfoMixin { @JsonCreator public static Info from(@Nullable Map<String, Object> values) { return Info.from(values); }  @JsonCreator static Info from(@Nullable Map<String, Object> values); @JsonAnyGetter abstract Map<String, Object> getValues();  }### Answer:
@Test public void verifySerialize() throws IOException { Map<String, Object> data = new HashMap<>(); data.put("build", Collections.singletonMap("version", "1.0.0")); data.put("foo", "bar"); Info info = Info.from(data); JsonContent<Info> jsonContent = jsonTester.write(info); assertThat(jsonContent).extractingJsonPathMapValue("$").containsOnlyKeys("build", "foo"); assertThat(jsonContent).extractingJsonPathStringValue("$['build'].['version']").isEqualTo("1.0.0"); assertThat(jsonContent).extractingJsonPathStringValue("$['foo']").isEqualTo("bar"); }