### Question:
TagsMixin { @JsonCreator public static Tags from(Map<String, ?> map) { return Tags.from(map); }  @JsonCreator static Tags from(Map<String, ?> map); @JsonAnyGetter abstract Map<String, String> getValues();  }### Answer:
@Test public void verifySerialize() throws IOException { Map<String, Object> data = new HashMap<>(); data.put("env", "test"); data.put("foo", "bar"); Tags tags = Tags.from(data); JsonContent<Tags> jsonContent = jsonTester.write(tags); assertThat(jsonContent).extractingJsonPathMapValue("$").containsOnly(entry("env", "test"), entry("foo", "bar")); }