@Test
public void testMergePositionsOverlap() throws IOException {

	List<OffsetPosition> position1 = new ArrayList<OffsetPosition>();
	List<OffsetPosition> position2 = new ArrayList<OffsetPosition>();
	position1.add(new OffsetPosition(0,3));
	position1.add(new OffsetPosition(5,6));
	position1.add(new OffsetPosition(8,9));
	position2.add(new OffsetPosition(1,2));
	position2.add(new OffsetPosition(3,6));
	position2.add(new OffsetPosition(7,10));
	
	List<OffsetPosition> positions= Utilities.mergePositions(position1,position2);
	assertEquals(positions.size(), 2);
	assertEquals(positions.get(0).start, 0);
	assertEquals(positions.get(0).end, 6);
	assertEquals(positions.get(1).start, 7);		
	assertEquals(positions.get(1).end, 10);
}