ProviderConfig extends AbstractServiceConfig { @Deprecated public void setProtocol(String protocol) { this.protocols = Arrays.asList(new ProtocolConfig[]{new ProtocolConfig(protocol)}); }  @Deprecated void setProtocol(String protocol); @Parameter(excluded = true) Boolean isDefault(); @Deprecated void setDefault(Boolean isDefault); @Parameter(excluded = true) String getHost(); void setHost(String host); @Parameter(excluded = true) Integer getPort(); @Deprecated void setPort(Integer port); @Deprecated @Parameter(excluded = true) String getPath(); @Deprecated void setPath(String path); @Parameter(excluded = true) String getContextpath(); void setContextpath(String contextpath); String getThreadpool(); void setThreadpool(String threadpool); Integer getThreads(); void setThreads(Integer threads); Integer getIothreads(); void setIothreads(Integer iothreads); Integer getQueues(); void setQueues(Integer queues); Integer getAccepts(); void setAccepts(Integer accepts); String getCodec(); void setCodec(String codec); String getCharset(); void setCharset(String charset); Integer getPayload(); void setPayload(Integer payload); Integer getBuffer(); void setBuffer(Integer buffer); String getServer(); void setServer(String server); String getClient(); void setClient(String client); String getTelnet(); void setTelnet(String telnet); @Parameter(escaped = true) String getPrompt(); void setPrompt(String prompt); String getStatus(); void setStatus(String status); @Override String getCluster(); @Override Integer getConnections(); @Override Integer getTimeout(); @Override Integer getRetries(); @Override String getLoadbalance(); @Override Boolean isAsync(); @Override Integer getActives(); String getTransporter(); void setTransporter(String transporter); String getExchanger(); void setExchanger(String exchanger); @Deprecated @Parameter(excluded = true) String getDispather(); @Deprecated void setDispather(String dispather); String getDispatcher(); void setDispatcher(String dispatcher); String getNetworker(); void setNetworker(String networker); Integer getWait(); void setWait(Integer wait);  }
@Test public void testProtocol() throws Exception { ProviderConfig provider = new ProviderConfig(); provider.setProtocol("protocol"); assertThat(provider.getProtocol().getName(), equalTo("protocol")); }