@Test
public void deserializeFromHexString() throws Exception {

    String hex = "08012bc80010636f61703a2f2f6c6f63616c686f7374c40133363030c10231c2033630c304363030c10530c10730";
    byte[] tlv = HexArray.fromHex(hex);
    List<LWM2MObjectInstance> decoded = TLVDeserializer.deserialiseObjectInstances(tlv);
    assertThat(decoded, hasSize(1));
    LWM2MObjectInstance instance = decoded.get(0);
    assertThat(instance.getResource(LWM2MID.$0).getStringValue(), equalTo("coap://localhost"));
}