@Test
public void appendInitialParametersList()
  throws BeanException, ReportDataFactoryException, ParserConfigurationException, XPathExpressionException,
  CloneNotSupportedException {

  final LinkedHashMap<String, ParameterDefinitionEntry> parameterDefinitions = getParametersMap();
  final DefaultParameterContext context = getTestParameterContext();
  final ValidationResult vr = new ValidationResult();
  vr.setParameterValues( new ReportParameterValues() );
  handler.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
  final ParameterDependencyGraph dependencies = new ParameterDependencyGraph( "first", "second", "third" );
  dependencies.addDependency( "first", "second" );
  dependencies.addDependency( "second", "third" );
  final Element parameters = handler.document.createElement( "parameters" );
  handler.document.appendChild( parameters );
  handler.appendParametersList( context, vr, parameters, dependencies, parameterDefinitions, new HashMap<>(),
    new HashSet<>() );
  examineInitialParameters( handler.document );
}