@JsonCreator
    public static ModelVersion of(String version) {
        Preconditions.checkArgument(StringUtils.isNotBlank(version), "Version must not be blank");
        return new AutoValue_ModelVersion(version);
    }
@Test
    public void deserialize() {
        final ModelVersion modelVersion = ModelVersion.of("foobar");
        final JsonNode jsonNode = objectMapper.convertValue(modelVersion, JsonNode.class);

        assertThat(jsonNode.isTextual()).isTrue();
        assertThat(jsonNode.asText()).isEqualTo("foobar");
    }