Testcase for GROOVY-6062