public void setupRequest() {
    super.setupRequest();

    boolean removePreviousFilters =
        Utils.readBoolean(
            properties.getProperty(this.currentTestNumber + ".test.removePreviousFilters"), true);
    if (removePreviousFilters) {
      filters.clear();
      servletTestModule.setDoChain(false);
    } else {
      for (Filter filter : filters) {
        servletTestModule.addFilter(filter);
        servletTestModule.setDoChain(true);
      }
    }
    String filter = properties.getProperty(this.currentTestNumber + ".test.filter");
    if (filter != null && !filter.trim().equals("")) {
      String[] filtersString = filter.split(",");
      for (String filterClass : filtersString) {
        Class<?> clazz = null;
        try {
          clazz = Class.forName(filterClass);
          Filter f = servletTestModule.createFilter(clazz);
          if (!filters.contains(f)) {
            filters.add(f);
            servletTestModule.setDoChain(true);
          }
        } catch (ClassNotFoundException e) {
          LOGGER.debug("Error: ", e);
        }
      }
    }
  }
 @Override
 public void setupInitParams() {
   super.setupInitParams();
   String value =
       webMockObjectFactory
           .getMockServletConfig()
           .getInitParameter(JSCSSMergeServlet.INIT_PARAM_EXPIRES_MINUTES);
   if (value == null) {
     setupInitParam(
         JSCSSMergeServlet.INIT_PARAM_EXPIRES_MINUTES, expiresMinutes + ""); // one minute
   }
 }