NbiSshNetconfServer { public void start() throws Exception { NetconfServerConfigurationBuilder builder = NetconfServerConfigurationBuilder .createDefaultNcServerBuilder(m_serverPort) .setAuthenticationHandler(m_auth) .setNetconfServerMessageListener(m_listener) .setServerMessageHandler(new QueuingMessageHandler(m_listener)) .setConnectionIdleTimeoutMillis(m_connectionTimeout) .setCapabilityProvider(m_capabilityProvider); NetconfServerConfiguration configuration = builder.build(); LOGGER.info("Starting server with configuration " + configuration); m_session = m_dispatcher.createServer(configuration).get(); LOGGER.info("Start Netconf Server successfully"); } NbiSshNetconfServer(NbiSshNetconfAuth netconfAuth, NbiNetconfServerMessageListener netconfAdapter,
                               NetconfServerDispatcher dispatcher, DynamicCapabilityProviderImpl capabilityProvider); void setPort(int port); void setConnectionTimeout(long timeout); void addBasicCapability(); void start(); void stop();  }
@Test public void start() throws Exception{ netconfServer.start(); netconfServer.stop(); }