@Test
public void toJson() {

    JSONObject json = serverHandle.toJSONObject(null);
    assertEquals(json.get("vendor"),vendor);
    assertEquals(json.get("product"),product);
    assertEquals(json.get("version"),version);
    assertEquals(((JSONObject) json.get("extraInfo")).get("extra1"),"value1");
}