You use the is method. ie:
a.is( b )
See the docs for more description
edit
Since groovy 3, you can use === (or !== for the opposite)
You use the is method. ie:
a.is( b )
See the docs for more description
Since groovy 3, you can use === (or !== for the opposite)