@@ -0,0 +1,1809 @@
+package com.aemreunal.controller;%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%0A/*%0A * Rest Assured Doc: http://code.google.com/p/rest-assured/wiki/Usage#Static_imports%0A */%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport com.jayway.restassured.RestAssured;%0Aimport com.jayway.restassured.builder.ResponseSpecBuilder;%0Aimport com.jayway.restassured.filter.log.LogDetail;%0Aimport com.jayway.restassured.http.ContentType;%0Aimport com.jayway.restassured.path.json.JsonPath;%0Aimport com.jayway.restassured.specification.ResponseSpecification;%0A%0Aimport static com.jayway.restassured.RestAssured.given;%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic class ProjectControllerRestAssuredTest %7B%0A%0A    private ResponseSpecification responseSpec;%0A%0A    @Before%0A    public void createResponseSpec() %7B%0A        ResponseSpecBuilder builder = new ResponseSpecBuilder();%0A        builder.expectStatusCode(201);%0A        builder.expectContentType(ContentType.JSON);%0A        this.responseSpec = builder.build();%0A%0A        RestAssured.enableLoggingOfRequestAndResponseIfValidationFails(LogDetail.ALL);%0A    %7D%0A%0A    @Test%0A    public void testGetProjects() %7B%0A        JsonPath response = given()%0A            .contentType(ContentType.JSON)%0A%0A            .when()%0A            .get(%22/Project%22)%0A%0A            .then()%0A            .spec(this.responseSpec)%0A//            .body(%22$%22, arrayWithSize(4))%0A%0A            .extract().body().jsonPath();%0A%0A        assertTrue(response.getList(%22%22).size() == 4);%0A    %7D%0A%7D%0A

Add rest-assured test