### Question:
WebConfiguration { public Map<String, String> getParameters() { Enumeration<?> en = configuration.getInitParameterNames(); if (!en.hasMoreElements()) { return Collections.emptyMap(); } Map<String, String> parameters = new HashMap<>(); while (en.hasMoreElements()) { String key = (String) en.nextElement(); parameters.put(key, configuration.getInitParameter(key)); } return parameters; } WebConfiguration(final ServletConfig servletConfiguration);  WebConfiguration(FilterConfig filterConfiguration); String getConfigurationLocation(); String getDataDomainName(); Collection<Module> createModules(Module... standardModules); Map<String, String> getParameters(); Map<String, String> getOtherParameters();  }### Answer:
@Test public void testFilterParameters() { MockFilterConfig config1 = new MockFilterConfig(); config1.setFilterName("cayenne-x"); config1.setInitParameter( WebConfiguration.CONFIGURATION_LOCATION_PARAMETER, "cayenne-y.xml"); config1.setInitParameter("test", "xxx"); WebConfiguration configuration1 = new WebConfiguration(config1); Map<String, String> parameters = configuration1.getParameters(); assertNotSame(parameters, configuration1.getParameters()); assertEquals(parameters, configuration1.getParameters()); assertEquals(2, parameters.size()); assertEquals("cayenne-y.xml", parameters .get(WebConfiguration.CONFIGURATION_LOCATION_PARAMETER)); assertEquals("xxx", parameters.get("test")); }