@Beta
  public <T> T GroovyStub(
    @NamedParams({
      @NamedParam(value = "name", type = String.class),
      @NamedParam(value = "additionalInterfaces", type = List.class),
      @NamedParam(value = "defaultResponse", type = IDefaultResponse.class),
      @NamedParam(value = "verified", type = Boolean.class),
      @NamedParam(value = "useObjenesis", type = Boolean.class),
      @NamedParam(value = "global", type = Boolean.class),
      @NamedParam(value = "mockMaker", type = IMockMakerSettings.class)
    })
      Map<String, Object> options,
    @ClosureParams(ClosureParameterTypeFromVariableType.class)
      Closure interactions) {
    throw invalidMockCreation();
  }
Creates a Groovy stub with the specified options and interactions whose type and name are inferred
from the left-hand side of the enclosing assignment.

Example:

<pre>
  // type is Person.class, name is "myPerson", returns hard-coded values for property {@code name} and method {@code sing()}
  Person person = GroovyStub(name: "myPerson") {
    name >> "Fred"
    sing() >> "Tra-la-la"
  }
</pre>

@param options optional options for creating the Groovy stub
@param interactions a description of the Groovy stub's interactions

@return a Groovy stub with the specified options and interactions whose type and name are inferred
from the left-hand side of the enclosing assignment
spock-core/src/main/java/spock/mock/MockingApi.java