Improve validation logic
Add test
Add exclusions
Fix use correct method call in test
Merge pull request #977 from querydsl/i974

Improve validation logic