@Test
public void testProcessDirectInstructionWithLabelOperand() {

    Map<String, Long> labelMap = new HashMap<>();
    labelMap.put("somelabel", 20L);
    List<Byte> result = Assembler.processDirectInstructionWithLabelOperand(new Instruction(InstructionType.INSTRUCTION, "alabel", Assembler.opcodes.get("cj"), null, "somelabel", "a comment", null, 1), labelMap);
    assertEquals(new Byte((byte) 0x20), result.get(0));
    assertEquals(new Byte((byte) 0x20), result.get(1));
    assertEquals(new Byte((byte) 0x20), result.get(2));
    assertEquals(new Byte((byte) 0x20), result.get(3));
    assertEquals(new Byte((byte) 0x20), result.get(4));
    assertEquals(new Byte((byte) 0x20), result.get(5));
    assertEquals(new Byte((byte) 0x21), result.get(6));
    assertEquals(new Byte((byte) 0xA4), result.get(7));
    assertEquals(8, result.size());
}