@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 serialize() throws IOException {
        final ModelVersion modelVersion = objectMapper.readValue("\"foobar\"", ModelVersion.class);
        assertThat(modelVersion).isEqualTo(ModelVersion.of("foobar"));
    }