### Question:
StandardUserAgentClient extends AbstractUserAgent implements UserAgentClient { public static StandardUserAgentClient newInstance(Settings settings) { UDPConnector.Factory udpFactory = Factories.newInstance(settings, UDP_CONNECTOR_FACTORY_KEY); TCPConnector.Factory tcpFactory = Factories.newInstance(settings, TCP_CONNECTOR_FACTORY_KEY); return new StandardUserAgentClient(udpFactory.newUDPConnector(settings), tcpFactory.newTCPConnector(settings), settings); } StandardUserAgentClient(UDPConnector tcpConnector, TCPConnector udpConnector);  StandardUserAgentClient(UDPConnector tcpConnector, TCPConnector udpConnector, Settings settings); static StandardUserAgentClient newInstance(Settings settings); String[] getDirectoryAgentAddresses(); void setDirectoryAgentAddresses(String[] directoryAgentAddresses); void init();  }### Answer:
@Test public void testFindServicesOnServiceAgentServerWithOverflow() throws Exception { StandardServiceAgentServer sas = StandardServiceAgentServer.newInstance(newSettings()); sas.start(); try { ServiceAgentClient sac = SLP.newServiceAgentClient(newSettings()); int size = 20; for (int i = 0; i < size; ++i) { ServiceURL serviceURL = new ServiceURL("service:jmx:rmi" + i + ": ServiceInfo service = new ServiceInfo(serviceURL, Locale.ENGLISH.getLanguage(), Scopes.DEFAULT, Attributes.NONE); sac.register(service); } UserAgentClient uac = SLP.newUserAgentClient(newSettings()); List<ServiceInfo> services = uac.findServices(new ServiceType("service:jmx"), Locale.ENGLISH.getLanguage(), Scopes.DEFAULT, null); assert services.size() == size; } finally { sas.stop(); } }