GROOVY-6784: @ThreadInterrupt is not compatible with @CompileStatic
GROOVY-6784: Fix unit test