@Test
public void testParse() {

    XMLAdapter jrxmlAdapter = new XMLAdapter(
                                              TestJrxmlParserTest.class.getResourceAsStream( "testWPSreportTemplate.jrxml" ) );
    JrxmlParser p = new JrxmlParser();
    Pair<ProcessDefinition, Map<String, String>> parsed = p.parse( "processId", "testWPSreportTemplate",
                                                                   "Process description", jrxmlAdapter,
                                                                   new ArrayList<JrxmlContentProvider>(),
                                                                   new HashMap<String, ParameterDescription>() );
    assertNotNull( parsed );
    ProcessDefinition pd = parsed.first;
    assertNotNull( pd );
    assertNotNull( pd.getIdentifier() );
    assertEquals( "processId", pd.getIdentifier().getValue() );
    assertEquals( "createReportByAWPSProcess", pd.getTitle().getValue() );
}