@Ignore
@Test
public void testPrepareJrxmlAndReadInputParameters()
                        throws URISyntaxException, IOException, XMLStreamException, FactoryConfigurationError {

    MapContentProvider wmsContentProvider = getProvider();
    List<CodeType> processedIds = new ArrayList<CodeType>();
    Pair<InputStream, Boolean> jrxml = new Pair<InputStream, Boolean>(
                                                                       TestMapContentProviderTest.class.getResourceAsStream( "../../testWPSreportTemplate.jrxml" ),
                                                                       false );
    Map<String, Object> params = new HashMap<String, Object>();
    ProcessletInputs in = Utils.getInputs( "MAP", MIME_TYPE, SCHEMA,
                                           TestMapContentProviderTest.class.getResourceAsStream( "complexInput" ) );
    HashMap<String, String> parameters = new HashMap<String, String>();
    parameters.put( "mapMAP_img", "java.lang.String" );
    parameters.put( "mapMAP_legend", "java.lang.String" );
    parameters.put( "LEGEND", "java.lang.String" );
    try {
        jrxml = wmsContentProvider.prepareJrxmlAndReadInputParameters( jrxml.first, params, in, processedIds,
                                                                       parameters );
    } catch ( ProcessletException e ) {
        // maybe connection to demo.deegree.org failed!
        Assume.assumeNoException( e );
    }
    assertEquals( 2, params.size() );
    assertEquals( 1, processedIds.size() );
    XMLAdapter a = new XMLAdapter( jrxml.first );
    String[] elements = a.getNodesAsStrings( a.getRootElement(),
                                             new XPath(
                                                        "/jasper:jasperReport/jasper:detail/jasper:band/jasper:frame/jasper:staticText/jasper:text/text()",
                                                        nsContext ) );
    assertEquals( 3, elements.length );
    boolean containsLake = false;
    boolean containsOverview = false;
    for ( int i = 0; i < elements.length; i++ ) {
        if ( "Lake".equals( elements[i] ) )
            containsLake = true;
        if ( "StateOverview".equals( elements[i] ) )
            containsOverview = true;
    }
    assertTrue( containsOverview );
    assertTrue( containsLake );
}