@Test
public void deserializeResourceWhereLengthFieldIsGreater() throws Exception {

    byte[] tlv = new byte[]{
        (byte) 0b11_0_00_011,
        (byte) 0,
        'A', 'R'};
    List<LWM2MResource> resources = TLVDeserializer.deserializeResources(tlv);
    assertThat(resources, hasSize(1));
    assertThat(resources.get(0).getId().intValue(), equalTo(0));
    assertArrayEquals("AR\0".getBytes(), resources.get(0).getValue());
    assertFalse(resources.get(0).hasNestedInstances());
}