https://github.com/tokuhirom/mech @Test public void testGoogle() throws Exception { try (Mech mech = new Mech("http://google.com/")) { try (MechResponse res = mech.get("/").execute()) { assertEquals(200, res.getStatusCode()); } } } こんな感じで使える。この使い方は本筋じゃなくて本当にやりたいのはこっち。 class MyServlet extends HttpServlet { protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletExcept