### Question:
AbstractServiceBuilder extends AbstractInterfaceBuilder<T, B> { public B addProtocols(List<ProtocolConfig> protocols) { if (this.protocols == null) { this.protocols = new ArrayList<>(); } this.protocols.addAll(protocols); return getThis(); }  B version(String version); B group(String group); B deprecated(Boolean deprecated); B delay(Integer delay); B export(Boolean export); B weight(Integer weight); B document(String document); B dynamic(Boolean dynamic); B token(String token); B token(Boolean token); B accesslog(String accesslog); B accesslog(Boolean accesslog); B addProtocols(List<ProtocolConfig> protocols); B addProtocol(ProtocolConfig protocol); B protocolIds(String protocolIds); B executes(Integer executes); B register(Boolean register); B warmup(Integer warmup); B serialization(String serialization); @Override void build(T instance);  }### Answer:
@Test void addProtocols() { ProtocolConfig protocol = new ProtocolConfig(); ServiceBuilder builder = new ServiceBuilder(); Assertions.assertNull(builder.build().getProtocols()); builder.addProtocols(Collections.singletonList(protocol)); Assertions.assertNotNull(builder.build().getProtocols()); Assertions.assertEquals(1, builder.build().getProtocols().size()); }