title: org.springframework.web.reactive.function.UnsupportedMediaTypeException: Content type 'application/json;charset=UTF-8' not supported
body: <p>The error show up when My code like this:</p>
  
  <pre><code>@Test
  public void getTemplateByIdTest() throws Exception {
      client.get().uri("/template/getTemplate/7")
              .exchange()
              .expectStatus().isOk()
              .expectHeader().contentType(MediaType.APPLICATION_JSON_UTF8)
              .expectBody(VtTemplateVO.class)
              .returnResult();
  }
  </code></pre>
  
  <p>When I change my code like this,it's ok!</p>
  
  <pre><code>@Test
  public void getTemplateByIdTest() throws Exception {
      client.get().uri("/template/getTemplate/7")
              .exchange()
              .expectStatus().isOk()
              .expectHeader().contentType(MediaType.APPLICATION_JSON_UTF8)
              .expectBody(String.class)
              .returnResult();
  }
  </code></pre>
  
  <p>Why when I use <code>.expectBody(VtTemplateVO.class)</code> it will say <code>org.springframework.web.reactive.function.UnsupportedMediaTypeException: Content type 'application/json;charset=UTF-8' not supported</code></p>
  
  <p>Somebody knows? please help,thanks</p>