public void testGetListOfAlerts() {
   AlertManagement alertManagement =
       new AlertManagement(
           new RequestStatusHandler() {
             @Override
             public void readResponse(CloudResponse response) {
               assertEquals(200, response.getCode());
               serverResponse = true;
             }
           });
   CloudResponse response = alertManagement.getListOfAlerts();
   assertEquals(true, response.getStatus());
   waitForServerResponse(alertManagement);
 }
 public void testUpdateAlertStatus() {
   AlertManagement alertManagement =
       new AlertManagement(
           new RequestStatusHandler() {
             @Override
             public void readResponse(CloudResponse response) {
               assertEquals(200, response.getCode());
               serverResponse = true;
             }
           });
   CloudResponse response = alertManagement.updateAlertStatus(alertId.toString(), "Open");
   assertEquals(true, response.getStatus());
   waitForServerResponse(alertManagement);
 }
 public void testResetAlert() throws JSONException {
   AlertManagement alertManagement =
       new AlertManagement(
           new RequestStatusHandler() {
             @Override
             public void readResponse(CloudResponse response) {
               assertEquals(200, response.getCode());
               serverResponse = true;
             }
           });
   CloudResponse response = alertManagement.resetAlert(alertId.toString());
   assertEquals(true, response.getStatus());
   waitForServerResponse(alertManagement);
 }
 public void testAddCommentsToTheAlert() throws JSONException {
   AlertManagement alertManagement =
       new AlertManagement(
           new RequestStatusHandler() {
             @Override
             public void readResponse(CloudResponse response) {
               assertEquals(200, response.getCode());
               serverResponse = true;
             }
           });
   CloudResponse response =
       alertManagement.addCommentsToTheAlert(
           alertId.toString(),
           Utilities.sharedPreferences.getString("email", ""),
           System.currentTimeMillis(),
           "iotkit_wrapper comment");
   assertEquals(true, response.getStatus());
   waitForServerResponse(alertManagement);
 }