@Test
public void testClearErrorStatus() throws Exception {

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