### Question:
RackServlet extends HttpServlet { @Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RackEnvironment rackEnvironment = rackEnvironmentBuilder.build(request); try { RackResponse rackResponse = rackApplication.call(rackEnvironment); rackResponsePropagator.propagate(rackResponse, response); } finally { rackEnvironment.closeRackInput(); } } RackServlet(RackApplication rackApplication);  RackServlet(RackEnvironmentBuilder rackEnvironmentBuilder,
      RackApplication rackApplication,
      RackResponsePropagator rackResponsePropagator);   }### Answer:
@Test public void service() throws ServletException, IOException { when(rackApplication.call(rackEnvironment)).thenReturn(rackResponse); subject.service(request, response); InOrder inOrder = inOrder(rackResponsePropagator, rackEnvironment); inOrder.verify(rackResponsePropagator).propagate(rackResponse, response); inOrder.verify(rackEnvironment).closeRackInput(); }