ProtocolBuilder extends AbstractBuilder<ProtocolConfig, ProtocolBuilder> { public ProtocolBuilder name(String name) { this.name = name; return getThis(); }  static ProtocolBuilder newBuilder(); ProtocolBuilder id(String id); ProtocolBuilder name(String name); ProtocolBuilder host(String host); ProtocolBuilder port(Integer port); ProtocolBuilder contextpath(String contextpath); @Deprecated ProtocolBuilder path(String path); ProtocolBuilder threadpool(String threadpool); ProtocolBuilder corethreads(Integer corethreads); ProtocolBuilder threads(Integer threads); ProtocolBuilder iothreads(Integer iothreads); ProtocolBuilder queues(Integer queues); ProtocolBuilder accepts(Integer accepts); ProtocolBuilder codec(String codec); ProtocolBuilder serialization(String serialization); ProtocolBuilder charset(String charset); ProtocolBuilder payload(Integer payload); ProtocolBuilder buffer(Integer buffer); ProtocolBuilder heartbeat(Integer heartbeat); ProtocolBuilder accesslog(String accesslog); ProtocolBuilder transporter(String transporter); ProtocolBuilder exchanger(String exchanger); ProtocolBuilder dispatcher(String dispatcher); @Deprecated ProtocolBuilder dispather(String dispather); ProtocolBuilder networker(String networker); ProtocolBuilder server(String server); ProtocolBuilder client(String client); ProtocolBuilder telnet(String telnet); ProtocolBuilder prompt(String prompt); ProtocolBuilder status(String status); ProtocolBuilder register(Boolean register); ProtocolBuilder keepAlive(Boolean keepAlive); ProtocolBuilder optimizer(String optimizer); ProtocolBuilder extension(String extension); ProtocolBuilder appendParameter(String key, String value); ProtocolBuilder appendParameters(Map<String, String> appendParameters); ProtocolBuilder isDefault(Boolean isDefault); ProtocolConfig build();  }
@Test void name() { ProtocolBuilder builder = new ProtocolBuilder(); builder.name("name"); Assertions.assertEquals("name", builder.build().getName()); }