title: How to mock a web server for unit testing in Java?
body: <p>I would like to create a unit test using a mock web server.  Is there a web server written in Java which can be easily started and stopped from a JUnit test case?</p>