@Override
    public byte[] serialize() {
        final byte[] data = new byte[LENGTH - HEADER_LENGTH];

        final ByteBuffer bb = ByteBuffer.wrap(data);
        bb.putShort(this.systemPriority);
        bb.put(this.systemMac.toBytes());
        bb.putShort(this.key);
        bb.putShort(this.portPriority);
        bb.putShort(this.port);
        bb.put(this.state.toByte());
        bb.put(RESERVED);

        return data;
    }
@Test
    public void serialize() {
        assertArrayEquals(data, BASE_TLV.serialize());
    }