Convert test in Groovy