GeneIdentifier implements Comparable<GeneIdentifier> { public String getEnsemblId() { return ensemblId; } private  GeneIdentifier(Builder builder); String getGeneId(); String getGeneSymbol(); String getHgncId(); String getHgncSymbol(); String getEntrezId(); @JsonIgnore Integer getEntrezIdAsInteger(); boolean hasEntrezId(); String getEnsemblId(); String getUcscId(); int compareTo(GeneIdentifier otherGeneIdentifier); static int compare(GeneIdentifier g1, GeneIdentifier g2); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Builder builder(); static final String EMPTY_FIELD; }
@Test public void getEnsemblId() { assertThat(EMPTY_GENE_IDENTIFIER.getEnsemblId(), equalTo(GeneIdentifier.EMPTY_FIELD)); GeneIdentifier instance = GeneIdentifier.builder() .ensemblId("ensemble") .build(); assertThat(instance.getEnsemblId(), equalTo("ensemble")); }