@Test
	public void testNacosWithAddr() {
		NacosDataSourceProperties nacosDataSourceProperties = new NacosDataSourceProperties();
		nacosDataSourceProperties.setServerAddr("127.0.0.1:8848");
		nacosDataSourceProperties.setContextPath("/my-nacos");
		nacosDataSourceProperties.setRuleType(RuleType.FLOW);
		nacosDataSourceProperties.setDataId("sentinel");
		nacosDataSourceProperties.setGroupId("custom-group");
		nacosDataSourceProperties.setDataType("xml");

		assertThat(nacosDataSourceProperties.getContextPath()).isEqualTo("/my-nacos");
		assertThat(nacosDataSourceProperties.getGroupId()).isEqualTo("custom-group");
		assertThat(nacosDataSourceProperties.getDataId()).isEqualTo("sentinel");
		assertThat(nacosDataSourceProperties.getDataType()).isEqualTo("xml");
		assertThat(nacosDataSourceProperties.getRuleType()).isEqualTo(RuleType.FLOW);
		assertThat(nacosDataSourceProperties.getFactoryBeanName())
				.isEqualTo(NacosDataSourceFactoryBean.class.getName());
	}
@author <a href="mailto:fangjian0423@gmail.com">Jim</a>
spring-cloud-alibaba-starters/spring-cloud-alibaba-sentinel-datasource/src/test/java/com/alibaba/cloud/sentinel/datasource/NacosDataSourcePropertiesTests.java