}
@Test
public void testWholeTailIsInsertion() {
final ReadThreadingGraph rtgraph = new ReadThreadingGraph(10);
final ReadThreadingGraph.DanglingChainMergeHelper result = new ReadThreadingGraph.DanglingChainMergeHelper(null, null, "AXXXXX".getBytes(), "AAAAAA".getBytes(), new TextCigarCodec().decode("5I1M"));
final int mergeResult = rtgraph.mergeDanglingTail(result);
Assert.assertEquals(mergeResult, 0);
}