Ah, wanted to point that out as well.

We should at least throw exception that WebArchive is expected here.

Aslak, what is wrong with `protocolArchive instanceof WebArchive`?

Do you think that running whole test suite once with WAR, once with EAR make sense?
I guess so, differences might be perceived e.g. in test enrichment.