@Test
public void testMerge() {

    try {
        temp = allele5.merge(allele4, 0);
        assertEquals(temp.getStart(), 5);
        assertEquals(temp.getEnd(), 20);
        assertEquals(temp.sequence.seqString(), "cccccaaaaattttt");
        temp = allele4.merge(allele5, 0);
        assertEquals(temp.getStart(), 5);
        assertEquals(temp.getEnd(), 20);
        assertEquals(temp.sequence.seqString(), "cccccaaaaattttt");        
        temp = allele2.merge(allele4, 0);
        assertEquals(temp.getStart(), 10);
        assertEquals(temp.getEnd(), 20);
        assertEquals(temp.sequence.seqString(), "aaaaattttt");
        temp = allele2.merge(allele4, 5);
        assertEquals(temp.getStart(), 10);
        assertEquals(temp.getEnd(), 20);
        assertEquals(temp.sequence.seqString(), "aaaaattttt");
        temp = allele2.merge(allele4, 6);
        assertTrue(temp.isEmpty());
    }
    catch(Exception e) {
        fail();
    }
}