@Test
public void json() {

    J4pTargetConfig cfg = new J4pTargetConfig(URL,"roland","s!cr!t");
    JSONObject j = cfg.toJson();
    assertEquals(j.get("url"),URL);
    assertEquals(j.get("user"),"roland");
    assertEquals(j.get("password"),"s!cr!t");
}