AbstractInterfaceBuilder extends AbstractMethodBuilder<T, B> { public B listener(String listener) { this.listener = listener; return getThis(); }  @Deprecated B local(String local); @Deprecated B local(Boolean local); B stub(String stub); B stub(Boolean stub); B monitor(MonitorConfig monitor); B monitor(String monitor); B proxy(String proxy); B cluster(String cluster); B filter(String filter); B listener(String listener); B owner(String owner); B connections(Integer connections); B layer(String layer); B application(ApplicationConfig application); B module(ModuleConfig module); B addRegistries(List<RegistryConfig> registries); B addRegistry(RegistryConfig registry); B registryIds(String registryIds); B onconnect(String onconnect); B ondisconnect(String ondisconnect); B metadataReportConfig(MetadataReportConfig metadataReportConfig); B configCenter(ConfigCenterConfig configCenter); B callbacks(Integer callbacks); B scope(String scope); B tag(String tag); @Override void build(T instance);  }
@Test void listener() { InterfaceBuilder builder = new InterfaceBuilder(); builder.listener("mockinvokerlistener"); Assertions.assertEquals("mockinvokerlistener", builder.build().getListener()); }