title: Testing a Spring Boot application?
body: <p>I want to create a Spring Boot test for a Controller-class.</p>
  
  <p>The method I want to test is:</p>
  
  <pre><code>private String statusQueryToken;
  
  @RequestMapping("/onCompletion")
  public String whenSigningComplete(@RequestParam("status_query_token") String token){
      this.statusQueryToken = token;
  </code></pre>
  
  <p>I am unsure about how to test things in Spring Boot.</p>
  
  <p>If I wanted to test that the field <code>statusQueryToken</code> has been initialized with the <code>@RequestParam("status_query_token")</code>, how would I go about doing this?</p>
  
  <p>Thank you!</p>