### Question:
RuleExecutionUtils { public static Map<String, String> getLocalRuleParam(Map<String, String> ruleParam, Map<String, String> resource) { Map<String, String> localRuleParam = new HashMap<>(); localRuleParam.putAll(ruleParam); localRuleParam.put(PacmanSdkConstants.RESOURCE_ID, resource.get(PacmanSdkConstants.RESOURCE_ID)); if (null != resource.get(PacmanSdkConstants.ACCOUNT_ID)) localRuleParam.put(PacmanSdkConstants.ACCOUNT_ID, resource.get(PacmanSdkConstants.ACCOUNT_ID)); if (null != resource.get(PacmanSdkConstants.ACCOUNT_NAME)) localRuleParam.put(PacmanSdkConstants.ACCOUNT_NAME, resource.get(PacmanSdkConstants.ACCOUNT_NAME)); if (null != resource.get(PacmanSdkConstants.REGION)) localRuleParam.put(PacmanSdkConstants.REGION, resource.get(PacmanSdkConstants.REGION)); return ImmutableMap.<String, String>builder().putAll(localRuleParam).build(); }  static boolean ifFilterMatchesTheCurrentResource(Map<String, String> ruleParam,
            Map<String, String> resource); static Map<String, String> getLocalRuleParam(Map<String, String> ruleParam, Map<String, String> resource); static String getRuleAttribute(RuleResult result, Map<String, String> ruleParam, PacmanRule ruleAnnotation,
            String attribute); static Annotation buildAnnotation(Map<String, String> ruleParam, Map<String, String> resource,
            String executionId, Type annotationType, PacmanRule ruleAnnotation);  }### Answer:
@Test public void getLocalRuleParam() throws Exception { Map<String, String> param = Maps.newHashMap(); param.put(PacmanSdkConstants.ACCOUNT_ID, "acc123"); param.put(PacmanSdkConstants.REGION, "region123"); param.put(PacmanSdkConstants.RESOURCE_ID, "resou123"); param.put(PacmanSdkConstants.REGION, "region"); Map<String, String> response = RuleExecutionUtils.getLocalRuleParam(param, param); assertNotNull(response); }