title: How to start and stop an Tomcat container with Java?
body: <p>I have a Maven project that starts a tomcat container for pre-integration-tests (jUnit Tests). Most of my tests require that the web-application under tests is restarted. So I'd like to restart the Tomcat container before each jUnit test is executed. </p>
  
  <p>As for now I use the cargo-maven2-plugin to configure the tomcat container.</p>
  
  <p>So, is it possible to start and stop the container with a java statement?</p>