Some of the Java EE 7 Samples tests exhibit weird CDI injection issues.
These are all in-container Arquillian tests that construct a JAR archive without beans.xml. The tests fail during CDI injection point validation, because there's no bean suitable for injection.
One other test:
Is quite similar: this in-container Arquillian test constructs a JAR with beans.xml which specifies bean-discovery-mode="none". Then, it tries to inject a BeanManager and check that the BeanManager indeed doesn't have any suitable bean for some class. However, the BeanManager itself isn't injected at all, so the test fails with a NPE.
All these tests pass just fine with WildFly.
Steps to reproduce: