### Question:
BuildVersionMixin { @JsonCreator public static BuildVersion valueOf(String s) { return BuildVersion.valueOf(s); }  @JsonCreator static BuildVersion valueOf(String s); @JsonValue abstract String getValue();  }### Answer:
@Test public void verifyDeserialize() throws JSONException, JsonProcessingException { BuildVersion buildVersion = objectMapper.readValue("\"1.0.0\"", BuildVersion.class); assertThat(buildVersion).isEqualTo(BuildVersion.valueOf("1.0.0")); }
@Test public void verifySerialize() throws JsonProcessingException { BuildVersion buildVersion = BuildVersion.valueOf("1.0.0"); String result = objectMapper.writeValueAsString(buildVersion); assertThat(result).isEqualTo("\"1.0.0\""); }