/**
* Adds Warp archive to the protocol archive to make it available for WARs and EARs.
*/
@Override
public void process(TestDeployment testDeployment, Archive<?> protocolArchive) {
final TestClass testClass = this.testClass.get();
final Archive<?> applicationArchive = testDeployment.getApplicationArchive();
if (WarpCommons.isWarpTest(testClass.getJavaClass())) {
if (!Validate.isArchiveOfType(WebArchive.class, protocolArchive)) {
throw new IllegalArgumentException("Protocol archives of type " + protocolArchive.getClass()
+ " not supported by Warp. Please use the Servlet 3.0 protocol.");
}