@Test
	public void testGetByClass() {
		assertThat(RuleType.getByClass(Object.class).isPresent())
				.isEqualTo(Boolean.FALSE);
		assertThat(RuleType.getByClass(AbstractRule.class).isPresent())
				.isEqualTo(Boolean.FALSE);
		assertThat(RuleType.getByClass(FlowRule.class).isPresent())
				.isEqualTo(Boolean.TRUE);
		assertThat(RuleType.getByClass(DegradeRule.class).isPresent())
				.isEqualTo(Boolean.TRUE);
		assertThat(RuleType.getByClass(ParamFlowRule.class).isPresent())
				.isEqualTo(Boolean.TRUE);
		assertThat(RuleType.getByClass(SystemRule.class).isPresent())
				.isEqualTo(Boolean.TRUE);
		assertThat(RuleType.getByClass(AuthorityRule.class).isPresent())
				.isEqualTo(Boolean.TRUE);
	}
@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/RuleTypeTests.java