I am getting the arror:415 Unsupported Media Type in my jerseytest junit

I am consuming json on a post request which works when I deploy my war on my jersey server but am trying to write a junit for it.

I have used the following example https://jenming.wordpress.com/2013/0...n/#comment-138

I have tried changing the dependencies but nothing works.

Any pointers would be truly appreciated.