XacmlRest { public static void loadXacmlProperties(Properties policyProperties, Properties pipProperties) { try { XACMLProperties.reloadProperties(); XACMLProperties.getProperties().putAll(XacmlRest.restProperties); if (policyProperties != null) { XACMLProperties.getProperties().putAll(policyProperties); } if (pipProperties != null) { XACMLProperties.getProperties().putAll(pipProperties); } } catch (IOException e) { PolicyLogger.error(MessageCodes.ERROR_PROCESS_FLOW, e, "Failed to put init properties into Xacml properties"); } if (logger.isDebugEnabled()) { try { logger.debug(XACMLProperties.getProperties().toString()); } catch (IOException e) { PolicyLogger.error(MessageCodes.ERROR_PROCESS_FLOW, e, "Cannot dump properties"); } } } private  XacmlRest(); static void xacmlInit(ServletConfig config); static void loadXacmlProperties(Properties policyProperties, Properties pipProperties); static void dumpRequest(HttpServletRequest request);  }
@Test public void testLoadXacmlProperties() { XacmlRest.xacmlInit(servletConfig); XacmlRest.loadXacmlProperties(null, null); XacmlRest.loadXacmlProperties(new Properties(), new Properties()); Logger.getRootLogger().setLevel(Level.INFO); XacmlRest.loadXacmlProperties(new Properties(), new Properties()); }