Pax Exam provides a selection of test containers for running your system under test and your tests in a more or less isolated environment.
The test containers differ regarding the operation mode and the degree of isolation and the communication channel between the system under test and the test driver.
Selecting a Test Container
Pax Exam selects the test container at run-time by discovering a TestContainerFactory service via the Java 6 ServiceLoader. This requires exactly one such service to be present on the classpath. Thus, to select a container for your tests, just include the corresponding pax-exam-container-* JAR in your project configuration.