@Test
public void testServiceDefined() {

    ProcessInstanceEventBatch batch = new ProcessInstanceEventBatch("http://localhost:8080", null);
    assertThat(batch.extractRuntimeSource(singletonMap(PROCESS_ID_META_DATA, "travels"))).isEqualTo("http://localhost:8080/travels");
    assertThat(batch.extractRuntimeSource(singletonMap(PROCESS_ID_META_DATA, "demo.orders"))).isEqualTo("http://localhost:8080/orders");
}