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

  final DefaultListParameter parameter =
    new DefaultListParameter( "query", "c1", "c2", "name", true, true, String.class );
  final ParameterContext context = getTestParameterContext();
  handler.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
  final ParameterDependencyGraph dependencies = new ParameterDependencyGraph( "name", "dep1", "dep2" );
  dependencies.addDependency( "name", "dep1" );
  dependencies.addDependency( "name", "dep2" );
  final Element element = handler.createParameterElement( parameter, context, null, dependencies, false );
  assertNotNull( element );
  handler.document.appendChild( element );
  handler.createParameterDependencies( element, parameter, dependencies );
  final String xml = toString( handler.document );
  examineStandardXml( handler.document );
  assertTrue( isThereAttributes( handler.document ) );
}