GPRESOURCES-207 - integration test

integration test for the issue explained in [GPRESOURCES-207](http://jira.grails.org/browse/GPRESOURCES-207)