@Test
public void testInspectInputParametersFromJrxml() {

    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put( "SUBREPORT_dir", "java.lang.String" );
    parameters.put( "SUBREPORT_datasource", "net.sf.jasperreports.engine.JRDataSource" );
    List<JAXBElement<? extends ProcessletInputDefinition>> inputs = new ArrayList<JAXBElement<? extends ProcessletInputDefinition>>();
    XMLAdapter jrxmlAdapter = new XMLAdapter(
                                              TestOtherContentProviderTest.class.getResourceAsStream( "../templateWithInlineTable.jrxml" ) );
    List<String> handledParameters = new ArrayList<String>();
    subreportContentProvider.inspectInputParametersFromJrxml( new HashMap<String, ParameterDescription>(), inputs,
                                                              jrxmlAdapter, parameters, handledParameters );
    // includes parameters of the subreport
    assertEquals( 2, handledParameters.size() );
    // table, title parameter (from resource bundle), title
    assertEquals( 3, inputs.size() );
}