Step step = (Step) historySteps.get(2);
Step step = (Step) historySteps.get(0);
    public void testEarlyJoin() throws Exception {        URL url = getClass().getResource("/samples/earlyjoin.xml");        long id = workflow.initialize(url.toString(), 100, null);        List currentSteps = workflow.getCurrentSteps(id);        assertEquals("Unexpected number of current steps", 2, currentSteps.size());        workflow.doAction(id, 1, Collections.EMPTY_MAP);        //we end up in step 3, with everything finished        List historySteps = workflow.getHistorySteps(id);        assertEquals("Unexpected number of history steps", 3, historySteps.size());        Step step = (Step) historySteps.get(2);        assertEquals("Unexpected last history step", 3, step.getStepId());    }