### Question:
RangeLongBlock implements Comparable<RangeLongBlock>, Iterable<Long> { public boolean overlaps(RangeLongBlock other) { return containsValue(other.myStartValue) || containsValue(other.myEndValue) || other.containsValue(myStartValue) || other.containsValue(myEndValue); } RangeLongBlock(long value);  RangeLongBlock(long startValue, long endValue);  RangeLongBlock(RangeLongBlock other); static List<RangeLongBlock> createRangeLongBlocks(Collection<? extends Long> values); static List<RangeLongBlock> createRangeLongBlocks(long[] values); static List<RangeLongBlock> createRangeLongBlocks(Long[] values); static List<RangeLongBlock> createSubBlocksByRemovingValue(RangeLongBlock block, long valueToRemove); static boolean isContiguous(long[] values); static RangeLongBlock merge(RangeLongBlock one, RangeLongBlock two); boolean borders(long value); boolean borders(RangeLongBlock block); @Override int compareTo(RangeLongBlock o); boolean containsValue(long value); @Override boolean equals(Object obj); boolean formsContiguousRange(RangeLongBlock other); long getEnd(); RangeRelationType getRelation(RangeLongBlock block); long getStart(); @Override int hashCode(); RangeLongBlock intersection(RangeLongBlock other); boolean isAfter(RangeLongBlock other); boolean isBefore(RangeLongBlock other); @Override Iterator<Long> iterator(); boolean overlaps(RangeLongBlock other); int size(); @Override String toString();  }### Answer:
@Test public void testOverlaps() { RangeLongBlock block = new RangeLongBlock(5, 10); RangeLongBlock before = new RangeLongBlock(1, 3); RangeLongBlock borderBefore = new RangeLongBlock(1, 4); RangeLongBlock overlapLeading = new RangeLongBlock(1, 5); RangeLongBlock equals = new RangeLongBlock(5, 10); RangeLongBlock subset = new RangeLongBlock(6, 9); RangeLongBlock superset = new RangeLongBlock(4, 11); RangeLongBlock overlapTrailing = new RangeLongBlock(9, 11); RangeLongBlock borderAfter = new RangeLongBlock(11, 12); RangeLongBlock after = new RangeLongBlock(12, 13); Assert.assertFalse(block.overlaps(before)); Assert.assertFalse(block.overlaps(borderBefore)); Assert.assertTrue(block.overlaps(overlapLeading)); Assert.assertTrue(block.overlaps(subset)); Assert.assertTrue(block.overlaps(equals)); Assert.assertTrue(block.overlaps(superset)); Assert.assertTrue(block.overlaps(overlapTrailing)); Assert.assertFalse(block.overlaps(borderAfter)); Assert.assertFalse(block.overlaps(after)); }