@Test
	public void testNacosWithProperties() {
		NacosDataSourceProperties nacosDataSourceProperties = new NacosDataSourceProperties();
		nacosDataSourceProperties.setAccessKey("ak");
		nacosDataSourceProperties.setSecretKey("sk");
		nacosDataSourceProperties.setEndpoint("endpoint");
		nacosDataSourceProperties.setNamespace("namespace");
		nacosDataSourceProperties.setRuleType(RuleType.SYSTEM);

		assertThat(nacosDataSourceProperties.getAccessKey()).isEqualTo("ak");
		assertThat(nacosDataSourceProperties.getSecretKey()).isEqualTo("sk");
		assertThat(nacosDataSourceProperties.getEndpoint()).isEqualTo("endpoint");
		assertThat(nacosDataSourceProperties.getNamespace()).isEqualTo("namespace");
		assertThat(nacosDataSourceProperties.getRuleType()).isEqualTo(RuleType.SYSTEM);
	}
@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