public static ModelType of(String name, String version) {
        validate(name, version);
        return Builder.create().name(name).version(version).build();
    }
@Test
    public void serialize() throws IOException {
        final ModelType modelType = objectMapper.readValue("{\"name\":\"foobar\",\"version\":\"1\"}", ModelType.class);
        assertThat(modelType).isEqualTo(ModelType.of("foobar", "1"));
    }