GROOVY-6189: added a few tests for SAM coercion