@Test
public void testGapedLongestChain() {

    List<Block> randomChain = TestUtils.getRandomAltChain(new byte[32], 0, 100, 5);
    Iterator<Block> it = randomChain.iterator();
    while (it.hasNext()) {
        if (it.next().getHeader().getNumber() == 15) it.remove();
    }
    SyncQueueImpl syncQueue = new SyncQueueImpl(randomChain);
    assert syncQueue.getLongestChain().size() == 15; // 0 .. 14
}