@Test
public void serializeSimpleStringResource() {

    LWM2MResource resource = new LWM2MResource(LWM2MID.from("1"), "Simple String");
    resource.setType(LWM2MResourceType.STRING);
    String json = serializer.serialize(Arrays.asList(resource));
    System.out.println(json);
    assertThat (json, equalTo("{\"e\":[{\"n\":\"1\",\"sv\":\"Simple String\"}]}"));
}