VariantAnnotation implements Variant { @Override public String toString() { return "VariantAnnotation{" + "genomeAssembly=" + genomeAssembly + ", chromosome=" + chromosome + ", chromosomeName='" + chromosomeName + '\'' + ", position=" + position + ", ref='" + ref + '\'' + ", alt='" + alt + '\'' + ", geneSymbol='" + geneSymbol + '\'' + ", geneId='" + geneId + '\'' + ", variantEffect=" + variantEffect + ", annotations=" + annotations + '}'; } private  VariantAnnotation(Builder builder); GenomeAssembly getGenomeAssembly(); int getChromosome(); String getChromosomeName(); int getPosition(); String getRef(); String getAlt(); String getGeneSymbol(); String getGeneId(); VariantEffect getVariantEffect(); List<TranscriptAnnotation> getTranscriptAnnotations(); @Override boolean hasTranscriptAnnotations(); static VariantAnnotation empty(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Builder builder();  }
@Test public void testToString() throws Exception { System.out.println(VariantAnnotation.empty()); assertThat(VariantAnnotation.empty() .toString(), equalTo("VariantAnnotation{genomeAssembly=hg19, chromosome=0, chromosomeName='', position=0, ref='', alt='', geneSymbol='', geneId='', variantEffect=SEQUENCE_VARIANT, annotations=[]}")); }