URIAttribute extends ImmutableValueAttribute<URI,URIAttribute> { @JsonIgnore public void setUnchecked(String uri){ try { set(new URI(uri)); } catch (URISyntaxException e) { throw new RuntimeException(e); } } URIAttribute(); @JsonIgnore void setUnchecked(String uri);  }
@Test public void test_json(){ URIAttribute attribute = new URIAttribute(); attribute.setUnchecked("www.google.de"); URIAttribute copy = ObjectMapperBuilder.build().copy(attribute); Assertions.assertEquals("www.google.de",copy.get().toString()); }