title: How Can I test Servlets with JUnit?
body: <p>I saw Jetty has got and ServletTest class which you can use to test Servlets. </p>
  
  <pre><code>tester = new ServletTester();
  tester.setContextPath("/");
  tester.addServlet(TestServlet.class, "/servlet/*");
  ... 
  tester.start();
  </code></pre>
  
  <p>Do you know if there is something similar in Tomcat?
  How could I test a servlet?</p>