### Question:
AuthorityRuleManager { public static void loadRules(List<AuthorityRule> rules) { currentProperty.updateValue(rules); }  static void register2Property(SentinelProperty<List<AuthorityRule>> property); static void loadRules(List<AuthorityRule> rules); static boolean hasConfig(String resource); static List<AuthorityRule> getRules(); static boolean isValidRule(AuthorityRule rule);  }### Answer:
@Test public void testLoadRules() { String resourceName = "testLoadRules"; AuthorityRule rule = new AuthorityRule(); rule.setResource(resourceName); rule.setLimitApp("a,b"); rule.setStrategy(RuleConstant.AUTHORITY_WHITE); AuthorityRuleManager.loadRules(Collections.singletonList(rule)); List<AuthorityRule> rules = AuthorityRuleManager.getRules(); assertEquals(1, rules.size()); assertEquals(rule, rules.get(0)); AuthorityRuleManager.loadRules(Collections.singletonList(new AuthorityRule())); rules = AuthorityRuleManager.getRules(); assertEquals(0, rules.size()); }