@Test
public void testStart() {

  boolean success = false;
  httpServer.setWebappDir(new File(getClass().getClassLoader()
      .getResource("test-webroot").getFile()));
  try {
    httpServer.start();
    success = true;
  } catch (IllegalStateException e) {
    logger.error("Caught exception:", e);
  }
  Assert.assertTrue(success);
  try {
    Thread.sleep(5000);
  } catch (InterruptedException e) {
    Thread.currentThread().interrupt();
  }
  success = false;
  try {
    httpServer.stop();
    success = true;
  } catch (IllegalStateException e) {
    logger.error("Caught exception:", e);
  }
  Assert.assertTrue(success);
}