title: How to use web.xml or call servlet init() when using GWTTestCase
body: <p>I am using GWTTestCase class and I have to specify any servlets to use in module.gwt.xml file using </p>
  
  <pre><code>&lt;servlet path="/somepath" class="com.example.SomeServlet"/&gt;.
  </code></pre>
  
  <p>The actual requirement is to load other servlets that initialize resources (using <code>GenericServlet.init()</code> method) in order to make the tests run. web.xml is the obvious choice as this works in normal application setup. Also it would be useful to declare initialisation parameters.</p>
  
  <p>How do I get GWT to read web.xml file when doing unit testing? </p>