title: Get mapping with multiple params as once
body: <p>I have get mapping like this:</p>
  
  <pre><code>@GetMapping(value = "/topics", params = "dateRange")
  public Set&lt;Integer&gt; getTopicsInRange(@RequestParam DateRange dateRange) {
      return topicService.getTopicsInRange(dateRange);
  }
  </code></pre>
  
  <p>And now I would've like to test it as:</p>
  
  <pre><code>private final static DateRange VALID_DATE_RANGE = new DateRange(LocalDate.of(2018, 1, 1), LocalDate.of(2018, 2, 2));
  
  @Test
  public void gettingTopicsInRangeShouldReturn200(){
      given().
      .when()
      .get(String.format("/topics?dateRange=%s", VALID_DATE_RANGE)
      .then()
      .statusCode(200);
  }
  </code></pre>
  
  <p><code>Expected status code &lt;200&gt; doesn't match actual status code &lt;400&gt;.</code></p>
  
  <p>I know that my solution would've work if I would've change my DateRange param into 2 separated params as:</p>
  
  <pre><code>@GetMapping(value = "/topics", params = {"begin", "end"})
  public Set&lt;Integer&gt; getTopicsInRange(@RequestParam Date begin, @RequestParam Date end) {
      return topicService.getTopicsInRange(begin, end);
  }
  </code></pre>
  
  <p>and then test it as <code>/topics?begin=value&amp;end=value2</code> but it's not what I'm looking for (in case of DateRange would've like 10 fields making 10 params would've be really excessive I think)
  Any ideas how can I solve my problem?</p>
  
  <p><strong>EDIT</strong>
  This is my DateRange class: </p>
  
  <pre><code>@Data
  @AllArgsConstructor
  @NoArgsConstructor
  public class DateRange {
      LocalDate begin;
      LocalDate end;
  }
  </code></pre>