title: The method given() is undefined for the type PendingTransactionsTest
body: <p>I am conducting my first Acceptance Test case using Junit in Eclipse.  The code below is not complete because I'm still working on it.  I ran into this error, however, and I am not sure how to solve it.  </p>
  
  <p>Error Type: The method given() is undefined for the type</p>
  
  <p>Code:</p>
  
  <pre><code>package bns.so.unitTest;
  import java.util.HashMap;
  import java.util.Map;
  import org.junit.Test;
  import com.jayway.restassured.RestAssured;
  import bns.so.models.PendingTransactionsRequestModel;
  public class PendingTransactionsTest extends BaseUnitTest{
  
      Map&lt;String, Object&gt; mapBody = new HashMap&lt;String, Object&gt;();
      private static PendingTransactionsRequestModel transModel = new PendingTransactionsRequestModel();
      private static final String countryID = "ZZ";
      private static final String accountID = "2";
      private static final String customerID = "3";
      private static final String startDate = "2016-10-31 00:00:00";
      private static final String endDate = "2016-12-07 00:00:00";
      private static final String startAmount = "123123";
      private static final String endAmount = "200000";
      private static final String sortOption = "asc";
      private static final String sortOrder = "desc";
      private static final String numRecords = "1";
      private static final String lastRecordKey = "0";
      private static final String transType = "FundsTransfer";
  
  
      @Test
      public void accountIdTest(){
          mapBody = new HashMap&lt;String, Object&gt;();
          mapBody.put("accountID", PendingTransactionsTest.accountID);
          RestAssured.
          given().
          header("accountID", 2).
          contentType("application/json").
          body(mapBody).
  
      when().
          post("path").
  
      then().
          statusCode(200).
          //body("status.status", equals (0)).- doesn't work how do I reword this?
          body("status.reason", null);
  
  }}
  </code></pre>