    @Test
    public void testComplex2() throws Exception {

        InputStream in = ClassLoader.getSystemResourceAsStream("complex2.bpmn");
        Parser p = new ActivitiParser();

        ProcessDefinition pd = p.parse(in);
        assertNotNull(pd);
        
        SubProcess sp1 = (SubProcess) pd.getChild("reserveSubprocess");
        assertNotNull(sp1);
        assertEquals(7, sp1.getChildren().size());
        
        SubProcess sp2 = (SubProcess) pd.getChild("subprocess1");
        assertNotNull(sp2);
        assertEquals(32, sp2.getChildren().size());
    }