I would like to build a JUnit integration test that launches a Java process (Spring based) and then makes calls against that process.
If I would call this from the command line I would launch the Java process by calling
mvn exec:java -DmainClass=myClass -Dblahblah
from the command line in my pom directory
Is there any way to call that exec:main from inside my Java tester class, so that my tester can execute calls against process and validate results?