I write my unit tests for my Java application with Groovy, JUnit and EasyMock. In EasyMock there are several overloaded methods capture() which have been deprec
capture()
Try to use @CompileStatic of Groovy 2.0 - may be it will resolve your problem