public static Deserializer<LacpCollectorTlv> deserializer() {
        return (data, offset, length) -> {
            checkInput(data, offset, length, LENGTH - HEADER_LENGTH);

            LacpCollectorTlv lacpCollectorTlv = new LacpCollectorTlv();
            ByteBuffer bb = ByteBuffer.wrap(data, offset, length);

            lacpCollectorTlv.setCollectorMaxDelay(bb.getShort());

            return lacpCollectorTlv;
        };
    }
@Test
    public void deserializer() throws Exception {
        LacpCollectorTlv lacpCollectorTlv = LacpCollectorTlv.deserializer().deserialize(data, 0, data.length);
        assertEquals(COLLECTOR_MAX_DELAY, lacpCollectorTlv.getCollectorMaxDelay());

    }