@Override
  public <T> T Stub(Map<String, Object> options, Class<T> type) {
    return createMock(inferNameFromType(type), type, MockNature.STUB, options);
  }
Creates a stub with the specified options and type. The mock name will be the types simple name.

Example:

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

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

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