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

  final LinkedHashMap<String, ParameterDefinitionEntry> parameterDefinitions = getParametersMap( false );
  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 );
  final Map<String, Object> inputs = new HashMap<>();
  inputs.put( "first", new String[] { "c11", "c10" } );
  inputs.put( "second", new String[] { "c11", "c10" } );
  inputs.put( "third", new String[] { "c11", "c10" } );
  handler
    .appendParametersList( context, vr, parameters, dependencies, parameterDefinitions, inputs, asSet( "first" ) );
  examineChangedResetParameters( handler.document );
}