@JsonCreator
    public static ModelId of(String id) {
        Preconditions.checkArgument(StringUtils.isNotBlank(id), "ID must not be blank");
        return new AutoValue_ModelId(id);
    }
@Test
    public void deserialize() {
        final ModelId modelId = ModelId.of("foobar");
        final JsonNode jsonNode = objectMapper.convertValue(modelId, JsonNode.class);

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