@Beta
  public <T> T GroovyMock(
    @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) {
    throw invalidMockCreation();
  }
Creates a Groovy mock with the specified options whose type and name are inferred from the left-hand side of the
enclosing variable assignment.

Example:

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

@param options optional options for creating the Groovy mock

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