@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, Class<T> type) {
    throw invalidMockCreation();
  }
Creates a Groovy stub with the specified options and type. If enclosed in an variable assignment, the variable name
will be used as the stub's name.

Example:

<pre>
  def person = GroovyStub(Person, name: "myPerson") // type is Person.class, name is "myPerson"
</pre>

@param options optional options for creating the Groovy stub
@param type the interface or class type of the Groovy stub
@param <T> the interface or class type of the Groovy stub

@return a Groovy stub with the specified options and type
spock-core/src/main/java/spock/mock/MockingApi.java