/**
   * TestCase for getResourceFolder method
   *
   * <p>Returns the resource folder
   */
  public void testGetResourceFolder() {
    // Don't set anything
    assertEquals(root.getAbsolutePath(), ParameterAccessor.getResourceFolder(request));

    // Set in request
    String resourceFolder =
        System.getProperty("java.io.tmpdir") + "/resource"; // $NON-NLS-1$ //$NON-NLS-2$
    request.addParameter(ParameterAccessor.PARAM_RESOURCE_FOLDER, resourceFolder);
    assertEquals(resourceFolder, ParameterAccessor.getResourceFolder(request));

    request.removeParameter(ParameterAccessor.PARAM_RESOURCE_FOLDER);
  }
  /**
   * TestCase for initParameter method.
   *
   * <p>Initialize parameters should be from ServletContext.
   */
  public void verifyInitParameter() {
    String root_folder = root.getAbsolutePath();
    assertEquals(
        root_folder + File.separator + IBirtConstants.DEFAULT_DOCUMENT_FOLDER,
        ParameterAccessor.getResourceFolder(request)
            + File.separator
            + IBirtConstants.DEFAULT_DOCUMENT_FOLDER);
    assertEquals(root_folder, ParameterAccessor.getResourceFolder(request));

    assertEquals(DEFAULT_LOCALE, ParameterAccessor.webAppLocale.toString());

    assertTrue(ParameterAccessor.isOverWrite);
    assertTrue(!ParameterAccessor.isWorkingFolderAccessOnly());
  }