  @Test
  public void testConversion()throws Exception {

    final String filename = "3328_1_1.xml";
    
    InputStream lwm2mXml = Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);    
    
    LwM2MImporter importer = new LwM2MImporter();
    
    byte[] convertedContent = importer.convert(lwm2mXml);
    
    ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(convertedContent));
    ZipEntry entry = null;
    
    Map<String,byte[]> content = new HashMap<>();
    while ((entry = zis.getNextEntry()) != null) {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      IOUtils.copy(zis, baos);
      content.put(entry.getName(),baos.toByteArray());
    }
    
    assertEquals(2,content.keySet().size());
    assertTrue(content.keySet().contains("Power.fbmodel"));
    assertTrue(content.keySet().contains("Power.mapping"));
    
    System.out.println(new String(content.get("Power.fbmodel")));
    System.out.println(new String(content.get("Power.mapping")));
  }