public static ByteBuddyTestClassLoader withInterface(String name) {
    ByteBuddyTestClassLoader cl = new ByteBuddyTestClassLoader();
    cl.defineInterface(name);
    return cl;
  }
Creates a new {@link ByteBuddyTestClassLoader} and defines an interface with the passed name.

@param name the interface name
@return the classloader
spock-specs/src/test/groovy/org/spockframework/mock/runtime/ByteBuddyTestClassLoader.java