@Test
public void testMatches() throws Exception {

    List<Range<Long>> matches = matches(alignmentPair);
    assertEquals(3, matches.size());
    assertEquals(Range.closedOpen(0L, 4L), matches.get(0));
    assertEquals(Range.closedOpen(8L, 12L), matches.get(1));
    assertEquals(Range.closedOpen(16L, 20L), matches.get(2));
}