  @Test
  public void testToArray_nonEmptyList() {

    InsnList insnList = newInsnList(insn1, insn2);

    AbstractInsnNode[] insnArray = insnList.toArray();

    assertArrayEquals(new AbstractInsnNode[] {insn1, insn2}, insnArray);
  }