title: Rest assured with TestNG ins not working with Maven project
body: <p>I added the following dependency list in pom.xml for my Rest assured project with maven:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;com.jayway.restassured&lt;/groupId&gt;
      &lt;artifactId&gt;rest-assured&lt;/artifactId&gt;
      &lt;version&gt;2.1.0&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Now I am trying to run following sample code:</p>
  
  <pre><code>import static com.jayway.restassured.RestAssured.*;
  import static com.jayway.restassured.matcher.RestAssuredMatchers.*;
  import static org.hamcrest.Matchers.*;
  import java.util.*;
  import org.testng.Assert;
  import org.testng.annotations.*;
  
  public class TestNGTest1 {
  
      private Collection collection;
  
      @Test
      public void testGetSingleUserProgrammatic() {
          Response res = get("/service/single-user");            
          assertEquals(200, res.getStatusCode());
          String json = res.asString();
          JsonPath jp = new JsonPath(json);
          assertEquals("test@hascode.com", jp.get("email"));
          assertEquals("Tim", jp.get("firstName"));
          assertEquals("Testerman", jp.get("lastName"));
          assertEquals("1", jp.get("id"));
      }
  }
  </code></pre>
  
  <p>But this is throwing error while doing <code>mvn test</code></p>
  
  <p>Error is:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project GBAppAuomation: Compilation failure: Compilation failure:
  [ERROR] /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[50,2] error: cannot find symbol
  [ERROR] class TestNGTest1
  [ERROR] /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[53,2] error: cannot find symbol
  </code></pre>
  
  <p>Corresponding symbols are <code>get</code> etc, which rest assured uses.</p>
  
  <p>As asked here is complete error message::</p>
  
  <pre><code>Here is the complete error message::   **
  
  [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ GBAppAuomation ---
  [INFO] Compiling 1 source file to /home/jay/temp/GB_MVN_Proj/GBAppAuomation/target/test-classes
  [INFO] -------------------------------------------------------------
  [ERROR] COMPILATION ERROR : 
  [INFO] -------------------------------------------------------------
  [ERROR] /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[50,1] error: cannot find symbol
  [ERROR]  class TestNGTest1
  /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[50,17] error: cannot find symbol
  [ERROR]  class TestNGTest1
  /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[53,2] error: cannot find symbol
  [ERROR]  class TestNGTest1
  /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[53,20] error: cannot find symbol
  [INFO] 4 errors 
  [INFO] -------------------------------------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3.384s
  [INFO] Finished at: Sat Jan 04 15:26:57 IST 2014
  [INFO] Final Memory: 16M/202M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project GBAppAuomation: Compilation failure: Compilation failure:
  [ERROR] /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[50,1] error: cannot find symbol
  [ERROR] class TestNGTest1
  [ERROR] /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[50,17] error: cannot find symbol
  [ERROR] class TestNGTest1
  [ERROR] /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[53,2] error: cannot find symbol
  [ERROR] class TestNGTest1
  [ERROR] /home/jay/temp/GB_MVN_Proj/GBAppAuomation/src/test/java/com/glassbeam/app/TestNGTest1.java:[53,20] error: cannot find symbol
  </code></pre>