### Question:
GenomicBoundary implements Comparable<GenomicBoundary> { public boolean isInBoundarie(int position){ return isInBoundarie(position, 0); } 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 testIsInBoundarie_int() { int position = 1; GenomicBoundary instance = new GenomicBoundary("1", 1, 2); boolean expResult = true; boolean result = instance.isInBoundarie(position); assertEquals(result, expResult); position = 2; expResult = true; result = instance.isInBoundarie(position); assertEquals(result, expResult); position = 3; expResult = false; result = instance.isInBoundarie(position); assertEquals(result, expResult); position = 0; expResult = false; result = instance.isInBoundarie(position); assertEquals(result, expResult); }
@Test public void testIsInBoundarie_int_int() { int margin = 2; GenomicBoundary instance= new GenomicBoundary("1", 10, 12); int position = 7; boolean expResult = false; boolean result = instance.isInBoundarie(position, margin); assertEquals(result, expResult); position = 8; expResult = true; result = instance.isInBoundarie(position, margin); assertEquals(result, expResult); position = 9; expResult = true; result = instance.isInBoundarie(position, margin); assertEquals(result, expResult); position = 14; expResult = true; result = instance.isInBoundarie(position, margin); assertEquals(result, expResult); position = 15; expResult = false; result = instance.isInBoundarie(position, margin); assertEquals(result, expResult); }