@Nullable
  public IMockObject asMockOrNull(Object object) {
    return getMockMakerRegistry().asMockOrNull(object);
  }
Returns information about a mock object or {@code null}, if the object is not a mock.

@param object a mock object
@return information about the mock object or {@code null}, if the object is not a mock.
spock-core/src/main/java/org/spockframework/mock/MockUtil.java