RegistryBuilder extends AbstractBuilder<RegistryConfig, RegistryBuilder> { public RegistryBuilder subscribe(Boolean subscribe) { this.subscribe = subscribe; return getThis(); }  static RegistryBuilder newBuilder(); RegistryBuilder id(String id); RegistryBuilder address(String address); RegistryBuilder username(String username); RegistryBuilder password(String password); RegistryBuilder port(Integer port); RegistryBuilder protocol(String protocol); RegistryBuilder transporter(String transporter); @Deprecated RegistryBuilder transport(String transport); RegistryBuilder server(String server); RegistryBuilder client(String client); RegistryBuilder cluster(String cluster); RegistryBuilder group(String group); RegistryBuilder version(String version); RegistryBuilder timeout(Integer timeout); RegistryBuilder session(Integer session); RegistryBuilder file(String file); @Deprecated RegistryBuilder wait(Integer wait); RegistryBuilder isCheck(Boolean check); RegistryBuilder isDynamic(Boolean dynamic); RegistryBuilder register(Boolean register); RegistryBuilder subscribe(Boolean subscribe); RegistryBuilder appendParameter(String key, String value); RegistryBuilder parameter(String name, String value); RegistryBuilder appendParameters(Map<String, String> appendParameters); RegistryBuilder isDefault(Boolean isDefault); RegistryBuilder simplified(Boolean simplified); RegistryBuilder extraKeys(String extraKeys); RegistryBuilder useAsConfigCenter(Boolean useAsConfigCenter); RegistryBuilder useAsMetadataCenter(Boolean useAsMetadataCenter); RegistryBuilder preferred(Boolean preferred); RegistryBuilder accepts(String accepts); RegistryBuilder weight(Integer weight); RegistryConfig build();  }
@Test void subscribe() { RegistryBuilder builder = new RegistryBuilder(); builder.subscribe(true); Assertions.assertTrue(builder.build().isSubscribe()); }