final JSONObject gadget = (JSONObject) items.get(0);
final String gadgetId = (String) gadget.get("id");
//add gadgets to dashboard
initService("/api/common/gadgets/add.json", MethodJson.GET);
setParameter("gadgetId", gadgetId);
final Dashboard db = createDashboard("dashboard 1", true, getSpringSecurityLoggedUserAccount());
setParameter("boardId", db.getBoardId().toString());
final JSONObject response2 = callJsonService();
final JSONObject success2 = getSucess(response2);
//System.out.println(success2);
final JSONObject gadgetJson = (JSONObject) success2.get("gadget");
Assert.assertEquals("1", gadgetJson.get("gadget_position").toString());