I would like to learn what the robust way of checking, if a variable is of type string or gstring, is. I suppose it is different than in pure Java:
def var =
Instanceof tests should work:
assert "fasd" instanceof String assert "${this}" instanceof GString