This test expects a DeploymentException also just the producer bean violates the spec. So due to section 2.9 it should expect a DefinitionException.