title: unit test a servlet with an embedded Jetty
body: <p>How can we unit test a servlet with an embedded Jetty server?</p>
  
  <p>For example, how to test the servlet method below?</p>
  
  <pre><code>protected void doGet(HttpServletRequest request,
          HttpServletResponse response) throws ServletException, IOException {
      //any logic inside
  }
  </code></pre>