@Override
    public ObjectNode encode(Instruction instruction, CodecContext context) {
        checkNotNull(instruction, "Instruction cannot be null");

        return new EncodeInstructionCodecHelper(instruction, context).encode();
    }
@Test
    public void pushHeaderInstructionsTest() {
        final L2ModificationInstruction.ModMplsHeaderInstruction instruction =
                (L2ModificationInstruction.ModMplsHeaderInstruction) Instructions.pushMpls();
        final ObjectNode instructionJson = instructionCodec.encode(instruction, context);

        assertThat(instructionJson, matchesInstruction(instruction));
    }