@Test(expectedExceptions = IllegalArgumentException.class)
public void testBadTrimLoc() {
final GenomeLoc loc = new UnvalidatingGenomeLoc("20", 0, 10, 20);
final Haplotype hap = new Haplotype("ACGTAACCGGT".getBytes(), loc);
hap.trim(new UnvalidatingGenomeLoc("20", 0, 1, 20));
}
@Test(expectedExceptions = IllegalStateException.class)
public void testBadTrimNoLoc() {
final Haplotype hap = new Haplotype("ACGTAACCGGT".getBytes());