@Test
public void testProcessChanDirectives() {

    List<Instruction> instructions = Arrays.asList(
            new Instruction(InstructionType.DIRECTIVE, null, null, null, null, null, "#chan sensor", 1),
            new Instruction(InstructionType.INSTRUCTION, "alabel", Assembler.opcodes.get("ajw"), -10L, null, null, null, 2),
            new Instruction(InstructionType.DIRECTIVE, null, null, null, null, null, "\t#chan\tsensor", 3),
            new Instruction(InstructionType.DIRECTIVE, "anotherlabel", null, null, null, "a comment", "\t#chan\tsensor", 4)
    );
    List<Instruction> processedInstructions = Assembler.processChanDirectives(instructions, getSampleConfig());
    checkInstructionEquality(
            new Instruction(InstructionType.INSTRUCTION, null, Assembler.opcodes.get("ldc"), 70L, null, null, null, 1),
            processedInstructions.get(0));
    checkInstructionEquality(
            new Instruction(InstructionType.INSTRUCTION, "alabel", Assembler.opcodes.get("ajw"), -10L, null, null, null, 2),
            processedInstructions.get(1));
    checkInstructionEquality(
            new Instruction(InstructionType.INSTRUCTION, null, Assembler.opcodes.get("ldc"), 70L, null, null, null, 3),
            processedInstructions.get(2));
    checkInstructionEquality(
            new Instruction(InstructionType.INSTRUCTION, "anotherlabel", Assembler.opcodes.get("ldc"), 70L, null, "a comment", null, 4),
            processedInstructions.get(3));
}