Stub server is intended to give a mockito-esque feel to a stubbed HTTP server. This allows you to test an application that hits external HTTP interfaces as a proper black box. Take this example
You have a web application that hits a ReST api to retrieve customer information. In the web app code, you have
a gateway that calls the ReST api using a real HTTP request. In a test environment, you don't want to, or cannot
depend on the real ReST api, so you want to have a fake server that provides canned data back. This is what
StubServer is intended to simplify for you.
Example test:
Deploy your web app with a config file that declares that the ReST api is accessible on http://localhost:21435
```
StubServer server = new StubServer(21435); // matching port
server.start();
server.expect(get("/api/customer/Bob")).thenReturn(200, "application/xml","