@Test
public void testPrepareReplay() throws Exception {

       Flow flow = createFlow("blah");
       flow.getPart("0.0").setStatus(ERROR);
       assertEquals(1, flow.getStatusCount(CLEAN));
       assertEquals(1, flow.getStatusCount(ERROR));
       flow.prepareReplay();
       assertEquals(1, flow.getStatusCount(CLEAN));
       assertEquals(0, flow.getStatusCount(ERROR));
}