OntologyTerm { public String uri() { return source().isEmpty() ? accession() : StringUtils.appendIfMissing(source(), "/") + accession(); }  abstract String accession(); abstract String name(); abstract String source(); abstract int depth(); static OntologyTerm create(String accession); static OntologyTerm create(String accession, String name); static OntologyTerm create(String accession, String name, String source); static OntologyTerm create(String accession, String name, String source, int depth); static OntologyTerm createFromURI(String uri); String uri(); static JsonElement jsonForHeaders(Set<OntologyTerm> ontologyTerms);  }
@Test public void uri() { assertThat(UBERON_0002107_TERM.uri(), is(UBERON_0002107_URL)); }