@Test
public void testFilter() throws Exception {

       Flow flow = createFlow("blah");
       flow.getPart("0.0").setStatus(ERROR);
       assertEquals(0, flow.getPart("0.0").getFilterCount());
       assertEquals(0, flow.getPart("0.1").getFilterCount());
       assertFalse(flow.filter("0.0"));
       assertTrue(flow.filter("0.1"));
       assertEquals(0, flow.getPart("0.0").getFilterCount());
       assertEquals(1, flow.getPart("0.1").getFilterCount());
}