public synchronized Class<?> defineInterface(String name) {
    //noinspection resource
    return cache.computeIfAbsent(name, nameKey -> new ByteBuddy()
      .makeInterface()
      .name(nameKey)
      .make()
      .load(this, loadingStrategy)
      .getLoaded());
  }
Defines an empty interface with the passed {@code name}.

@param name the name of the interface
@return the loaded {@code Class}
spock-specs/src/test/groovy/org/spockframework/mock/runtime/ByteBuddyTestClassLoader.java