ServiceBuilder extends AbstractServiceBuilder<ServiceConfig, ServiceBuilder<U>> { public ServiceBuilder<U> provider(ProviderConfig provider) { this.provider = provider; return getThis(); }  static ServiceBuilder newBuilder(); ServiceBuilder id(String id); ServiceBuilder<U> interfaceName(String interfaceName); ServiceBuilder<U> interfaceClass(Class<?> interfaceClass); ServiceBuilder<U> ref(U ref); ServiceBuilder<U> path(String path); ServiceBuilder<U> addMethod(MethodConfig method); ServiceBuilder<U> addMethods(List<? extends MethodConfig> methods); ServiceBuilder<U> provider(ProviderConfig provider); ServiceBuilder<U> providerIds(String providerIds); ServiceBuilder<U> generic(String generic); ServiceConfig<U> build();  }
@Test void provider() { ProviderConfig provider = new ProviderConfig(); ServiceBuilder builder = new ServiceBuilder(); builder.provider(provider); Assertions.assertSame(provider, builder.build().getProvider()); }