public boolean isMock(Object object) {
    return asMockOrNull(object) != null;
  }
Tells whether the given object is a (Spock) mock object.

@param object an arbitrary object

@return whether the given object is a (Spock) mock object
spock-core/src/main/java/org/spockframework/mock/MockUtil.java