@Test
public void testStart2Processes_shouldOnlyTriggerSpecificEvents() throws Exception {
long id1 = service.startFlow("floweventtest");
long id2 = service.startFlow("floweventtest");
service.processEvent(new Event("event", id1));
service.processEvent(new TestEvent(id1));
service.waitForFlowToFinishIndefinitely(id1);
assertThat(service.getRunningFlows(), hasItem(id2));
assertThat(service.getRunningFlows(), not(hasItem(id1)));