title: Spring Boot - Rest Assured methods not found
body: <p>I have a REST API built with Spring Boot.</p>
  
  <p>I am attempting to use Rest-Assured test framework, however I can't seem to get it to work.</p>
  
  <p>I am using the guide from <a href="https://github.com/rest-assured/rest-assured" rel="nofollow">Here</a></p>
  
  <pre><code>get("/lotto").then().assertThat().body("lotto.lottoId", equalTo(5));
  </code></pre>
  
  <p>And have added the dependencies to my maven project.</p>
  
  <pre><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.9.0&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>However, It doesn't seem to import the required classes and just prompts me to create a new "<code>get()"</code> method.</p>
  
  <p>My Test class:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(Application.class)
  @WebIntegrationTest
  public class DemoControllerTest  {
  
      @Test
      public void test() {
          get("/lotto").then().assertThat().body("lotto.lottoId", equalTo(5));
      }
  
  }
  </code></pre>
  
  <p>What am I missing?</p>