source: class CacheableEventPublishingNacosServiceFactoryTest  {
  
  	@Autowired
  	private NacosServiceFactory nacosServiceFactory;
  	private Properties properties;
  
  	@Test
  	public void testGetNamingServices() throws NacosException {
  
target: 		NamingService namingService = nacosServiceFactory.createNamingService(properties);
  		NamingService namingService2 = nacosServiceFactory
  				.createNamingService(properties);
  		Assert.assertTrue(namingService == namingService2);
  		Assert.assertEquals(1, nacosServiceFactory.getNamingServices().size());
  		Assert.assertEquals(namingService,
  				nacosServiceFactory.getNamingServices().iterator().next());
  	}
  
  }