@@ -0,0 +1,1080 @@
+package com.aemreunal.helper;%0A%0A/*%0A ***************************%0A * Copyright (c) 2014      *%0A *                         *%0A * This code belongs to:   *%0A *                         *%0A * @author Ahmet Emre %C3%9Cnal *%0A * S001974                 *%0A *                         *%0A * aemreunal@gmail.com     *%0A * emre.unal@ozu.edu.tr    *%0A *                         *%0A * aemreunal.com           *%0A ***************************%0A */%0A%0Aimport org.apache.http.HttpStatus;%0Aimport com.aemreunal.config.GlobalSettings;%0A%0Aimport static com.jayway.restassured.RestAssured.given;%0A%0Apublic class EntityRemover %7B%0A    public static void removeUser(String username) %7B%0A        removeEntity(%22/%22 + username);%0A    %7D%0A%0A    private static void removeEntity(String path) %7B%0A        if (path.equals(%22%22)) %7B%0A            path = %22/%22;%0A        %7D%0A        path += %22?confirm=yes%22;%0A        given().log().ifValidationFails()%0A%0A               .when()%0A               .delete(GlobalSettings.BASE_CONTEXT_PATH + path)%0A%0A               .then()%0A               .log().ifValidationFails()%0A               .statusCode(HttpStatus.SC_OK);%0A    %7D%0A%0A%7D%0A

Create EntityRemover helper class