@Test
public void jsonConversion() {

    JSONObject json = new JSONObject();
    json.put("name","roland");
    json.put("kind","jolokia");
    Object object = converter.convertFromString(JSONObject.class.getName(),json.toString());
    assertEquals(json,object);
    JSONArray array = new JSONArray();
    array.add("roland");
    array.add("jolokia");
    object = converter.convertFromString(JSONArray.class.getName(),array.toString());
    assertEquals(array,object);
    try {
        converter.convertFromString(JSONObject.class.getName(),"{bla:blub{");
        fail();
    } catch (IllegalArgumentException exp) {
    }
}