### Question:
GenomicBoundary implements Comparable<GenomicBoundary> { public boolean isOverlaping(GenomicBoundary other){ if(other == null){ return false; } if( ! this.chromosome.equals(other.chromosome)){ return false; } if(this.start <= other.start && this.stop >= other.start){ return true; } else if(other.start <= this.start && other.stop >= this.start){ return true; } else { return false; } } GenomicBoundary(String chromosome, Integer start, int stop);  GenomicBoundary(String chromosome, Integer start, int stop, V annotation); String getChromosome(); Integer getStart(); int getStop(); @Override int compareTo(GenomicBoundary other); boolean isInBoundarie(int position); boolean isInBoundarie(int position, int margin); boolean isPartOfBoundary(GenomicBoundary other); boolean isOverlaping(GenomicBoundary other); V getAnnotation(); int getLength(boolean isInclusive);  }### Answer:
@Test public void isOverlaping() { GenomicBoundary other = new GenomicBoundary("1", 3, 5); GenomicBoundary instance = new GenomicBoundary("1", 3, 5); boolean expResult = true; boolean result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 1, 6); expResult = true; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 1, 4); expResult = true; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 2, 6); expResult = true; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 2, 7); expResult = true; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 5, 7); expResult = true; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 6, 7); expResult = false; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 7, 7); expResult = false; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 7, 8); expResult = false; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 2, 3); expResult = true; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 1, 2); expResult = false; result = instance.isOverlaping(other); assertEquals(result, expResult); other = new GenomicBoundary("1", 1, 1); expResult = false; result = instance.isOverlaping(other); assertEquals(result, expResult); }