@@ -0,0 +1,1493 @@
+/**%0A * The MIT License (MIT)%0A *%0A * Copyright (c) 2017 Vseslav Sekorin%0A */%0Apackage com.vssekorin.bilogic.util;%0A%0Aimport jdk.internal.org.objectweb.asm.tree.InsnList;%0Aimport jdk.internal.org.objectweb.asm.tree.InsnNode;%0Aimport jdk.internal.org.objectweb.asm.tree.LabelNode;%0Aimport lombok.val;%0Aimport org.junit.Test;%0A%0Aimport static jdk.internal.org.objectweb.asm.Opcodes.ICONST_2;%0Aimport static org.junit.Assert.assertTrue;%0A%0A/**%0A * Test case for %7B@link ChainInsnList%7D.%0A *%0A * @author Vseslav Sekorin (vssekorin@gmail.com)%0A * @version $Id$%0A * @since 1.0%0A */%0Apublic final class ChainInsnListTest %7B%0A%0A    @Test%0A    public void addNode() throws Exception %7B%0A        val list = new InsnList();%0A        list.add(new LabelNode());%0A        list.add(new InsnNode(ICONST_2));%0A        assertTrue(%0A            new InsnListEquals(%0A                list,%0A                new ChainInsnList()%0A                    .add(new LabelNode())%0A                    .add(new InsnNode(ICONST_2))%0A                    .getInsnList()%0A            ).value()%0A        );%0A    %7D%0A%0A    @Test%0A    public void addInsnList() throws Exception %7B%0A        val list = new InsnList();%0A        list.add(new LabelNode());%0A        list.add(new InsnNode(ICONST_2));%0A        val copy = new InsnList();%0A        copy.add(new LabelNode());%0A        copy.add(new InsnNode(ICONST_2));%0A        assertTrue(%0A            new InsnListEquals(%0A                list,%0A                new ChainInsnList().add(copy).getInsnList()%0A            ).value()%0A        );%0A    %7D%0A%7D%0A

Test case for CIL