@Test
public void serializeStringWithLengthOf65536() {

    byte[] name = new byte[65536];
    LWM2MResource model = new LWM2MResource(LWM2MID.from(1), name);
    byte[] modelTLV = TLVSerializer.serialize(model);
    assertThat(modelTLV.length, equalTo(65541) );
    assertArrayEquals( new byte[] {
            (byte) 0b11_0_11_000,
            (byte) 1,
            (byte) 0x01,
            (byte) 0x00,
            (byte) 0x00,
            },
            Arrays.copyOf(modelTLV, 5));
}