### Question:
GenomicBoundaries implements Iterable<GenomicBoundary<V>> { public Iterator<GenomicBoundary<V>> iterator() { return new GenomicBoundariesIterator<V>(genomicsBoundaries); } GenomicBoundaries(String genomicsBoundarysFilePath);  GenomicBoundaries();  GenomicBoundaries(String genomicsBoundarysFilePath, int margin); final void addBoundary(String chromosome, Integer beginPoint, int endPoint); final void removeSubBoundaries(); final void mergeOverlappingBoundaries(); boolean isChromosomeInBoundary(String chromosome); Set<String> getChromosomes(); boolean isInBoundary(String chromosome, int position, int listIndex); GenomicBoundary getBoundary(String chromosome, int position, int listIndex); Iterator<GenomicBoundary<V>> iterator(); int getBoundaryCountChromosome(String chromosome); int getBoudaryCount(); void writeBoundariesToBedFile(String bedFilePath, String trackName); TreeMap<Integer, ArrayList<GenomicBoundary<V>>> getGenomicBoundariesMap(String chromosome); Collection<ArrayList<GenomicBoundary<V>>> getGenomicBoundaries(String chromosome); void mergeGenomicBoundaries(GenomicBoundaries otherGenomicBoundariesSet); HashMap<String, TreeMap<Integer, ArrayList<GenomicBoundary<V>>>> getGenomicBoundaries(); final void addBoundary(String chromosome, Integer beginPoint, int endPoint, V annotation);  }### Answer:
@Test public void testIterator(){ String chromosome = "1"; Integer beginPoint = 1; int endPoint = 3; GenomicBoundaries<Object> instance = new GenomicBoundaries(); instance.addBoundary(chromosome, 1, 8); instance.addBoundary(chromosome, 2, 11); instance.addBoundary(chromosome, 3, 14); int[] expectedResults = new int[3]; expectedResults[0] = 1; expectedResults[1] = 2; expectedResults[2] = 3; int n=0; }