@Test
public void parseNotification() throws Exception {

    InputStream input = JsonDeserializerTest.class.getResourceAsStream(NOTIFICATION_JSON);
    String jsonString = IOUtils.toString(input);
    List<LWM2MResource> resources = deserializer.deserialize(jsonString);
    assertThat(resources, hasSize(1));
    assertThat(resources.get(0).getType(), nullValue());
    assertThat(resources.get(0).getNestedInstances(), hasSize(3));
    assertThat(resources.get(0).getNestedInstances().get(0).getType(), equalTo(LWM2MResourceType.FLOAT));
}