modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/RestAssuredMockMvc.java
public static MockMvcRequestSpecification given() {
        return new MockMvcRequestSpecificationImpl(mockMvcFactory, config, resultHandlers, requestPostProcessors, basePath, requestSpecification, responseSpecification, authentication);
    }
public static MockMvcRequestSpecification given() {
        return new MockMvcRequestSpecificationImpl(mockMvcFactory, config, resultHandlers, requestPostProcessors, basePath, requestSpecification, responseSpecification, authentication);
    }
public static MockMvcRequestSpecification given ( ) { return new MockMvcRequestSpecificationImpl ( mockMvcFactory , config , resultHandlers , requestPostProcessors , basePath , requestSpecification , responseSpecification , authentication ) ; }
This is usually the entry-point of the API if you need to specify parameters or a body in the request. For example:
<p/>
<pre>
given().
param("x", "y").
when().
get("/something").
then().
statusCode(200).
body("x.y", notNullValue());
</pre>
Note that this method is the same as {@link #with()} but with another syntax.

@return A {@link MockMvcRequestSpecification}.
This is usually the entry - point of the API if you need to specify parameters or a body in the request . For example : <p / > <pre > given () . param ( x y ) . when () . get ( / something ) . then () . statusCode ( 200 ) . body ( x . y notNullValue () ) ; < / pre > Note that this method is the same as { @link #with () } but with another syntax .