@Test
	public void testNacosDiscoveryHeartBeatPublisherEnabledForGateway() {
		contextRunner
				.withPropertyValues("spring.cloud.gateway.discovery.locator.enabled=true")
				.run(context ->
						assertThat(context).hasSingleBean(NacosDiscoveryHeartBeatPublisher.class)
				);
	}
@author <a href="mailto:zhangbin1010@qq.com">zhangbin</a>
spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/test/java/com/alibaba/cloud/nacos/discovery/NacosDiscoveryHeartBeatConfigurationTest.java