ServiceLocator { public ServiceLocator setPolicy(String policy) { this.policy = policy; return this; } ServiceLocator(UDDIClerk clerk);  ServiceLocator(UDDIClerk clerk, URLLocalizer urlLocalizer, Properties properties); ServiceLocator withCache(URL baseCallbackURL); ServiceLocator withLiveCache(URL baseCallbackURL); ServiceLocator withSimpleCache(); UDDIServiceCache getUDDIServiceCache(); ServiceLocator setPolicy(String policy); SelectionPolicy getPolicy(); void clearCaches(); void shutdown(); String lookupEndpoint(String serviceKey); String lookupEndpoint(QName serviceQName, String portName);  }
@Test public void testJUDDI_939() throws Exception { UDDIClient uddiClient = new UDDIClient(); ServiceLocator serviceLocator = uddiClient.getServiceLocator("default"); Assert.assertNotNull(serviceLocator); serviceLocator.setPolicy(PolicyRoundRobin.class.getName()); }