title: java.lang.NoSuchMethodError: org.springframework.http.MediaType.getCharset()Ljava/nio/charset/Charset;
body: <p>My junit fails with exception:</p>
  
  <blockquote>
    <p>java.lang.NoSuchMethodError:
    org.springframework.http.MediaType.getCharset()Ljava/nio/charset/Charset;</p>
  </blockquote>
  
  <p>There are two more post with same issue but the solution provided dn't help me.</p>
  
  <p>I have update my spring-core to 4.3.8.Release.</p>
  
  <p>Exception occurs while executing the below code.</p>
  
  <pre><code>mockMvc.perform(post("/domains")
                  .contentType(MediaType.APPLICATION_JSON)
                  .content(requestJson)).andExpect(status().isOk());
  </code></pre>
  
  <p>It would be a great help if any one could share their ideas. Thank you !!</p>