@Test
public void deserializeMultipleObjectInstances() throws Exception {

    byte[] acoTLV = createObjectInstanceTLV();
    List<LWM2MObjectInstance> objects = TLVDeserializer.deserialiseObjectInstances(acoTLV);
    assertThat(objects, hasSize(2));
    assertThat(objects.get(0).getId().intValue(), equalTo(0));
    assertThat(objects.get(0).getResources(), hasSize(3));
    assertThat(objects.get(1).getId().intValue(), equalTo(1));
    assertThat(objects.get(1).getResources(), hasSize(3));
}