public static IMockMakerSettings fancyMock(
    @DelegatesTo(FancyMockMakerSettings.class)
    Closure<?> code) {
    FancyMockMakerSettings settings = new FancyMockMakerSettings();
    code.setDelegate(settings);
    code.call();
    return settings;
  }
Public static entry point for the User.
spock-specs/src/test/groovy/org/spockframework/docs/extension/FancyMockMaker.java