Error while creating spring MockHttpServletResponse, MissingResourceException even after adding javax.servet-api dependency
<p>I am writing test for a servlet filter using spring MockHttpServletResponse and request. I am getting the following error while creating MockHttpServletResponse object.</p>

<blockquote>
  <p>Caused by: java.util.MissingResourceException: Can't find bundle for base name javax.servlet.LocalStrings, locale en_US</p>
</blockquote>

<p>I tried couple of things suggested on stackoverflow like adding <code>javax.servlet-api</code> to pom but even with that its not working.
I tried adding <code>tomcat server api</code> in pom, but that is also not working.</p>

<p>My pom file just contains <code>servlet api</code>, <code>jmockit</code> and <code>spring-test</code> dependencies. And I dont have any <code>message.properties</code> or any other resource in classpath.</p>

<p>Is there any other dependency that I need to add here?</p>