TopologicalDomain implements ChromosomalRegion { @Override public String toString() { return "TopologicalDomain{" + "chromosome=" + chromosome + ", start=" + start + ", end=" + end + ", genes=" + genes + '}'; } TopologicalDomain(int chromosome, int start, int end, Map<String, Integer> genes); @Override int getChromosome(); @Override int getStart(); @Override int getEnd(); Map<String, Integer> getGenes(); boolean containsPosition(VariantCoordinates variantCoordinates); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { Map<String, Integer> genes = new HashMap<>(); genes.put("GENE1", 12345); genes.put("GENE2", 23456); instance = new TopologicalDomain(1, 987, 123456, genes); System.out.println(instance); }