@Test
public void convertToJsonTest() throws MalformedObjectNameException, AttributeNotFoundException {

    File file = new File("myFile");
    Map ret = (Map) converter.convertToJson(file, null, JsonConvertOptions.DEFAULT);
    assertEquals(ret.get("name"),"myFile");
    String name = (String) converter.convertToJson(file, Arrays.asList("name"), JsonConvertOptions.DEFAULT);
    assertEquals(name,"myFile");
}