Basically test cases for:
Seemed more complete to test them in this context.
GRAILS-10166 - Add test case for embedded property query support in u…
I can't merge this until we publish a new version
I added more tests directly to the data-mapping project to cover this scenario. It doesn't hurt to have the tests in grails-core as well but it would be some duplication.
cherry picked commit as 8d17eec to 2.3.x branch since 2.2.x isn't maintained anymore. Thanks for the pull request!