@Test
public void parseDeviceObject() throws Exception {

    InputStream input = JsonDeserializerTest.class.getResourceAsStream(DEVICE_OBJECT_JSON);
    String jsonString = IOUtils.toString(input);
    List<LWM2MResource> resources = deserializer.deserialize(jsonString);
    assertThat(resources, hasSize(13));
    assertThat(resources.get(0).getType(), equalTo(LWM2MResourceType.STRING));
    assertArrayEquals("Open Mobile Alliance".getBytes(), resources.get(0).getValue());
    assertThat(resources.get(3).getType(), equalTo(LWM2MResourceType.STRING));
    assertThat(resources.get(4).getNestedInstances().get(0).getType(), equalTo(LWM2MResourceType.INTEGER));
}