@Test
void verifyEventSourceBeingGenerated() {

    final String processId = "the_cool_project";
    final String instanceId = UUID.randomUUID().toString();
    ProcessInstance pi = mock(ProcessInstance.class);
    when(pi.getProcessId()).thenReturn(processId);
    when(pi.getId()).thenReturn(instanceId);
    final String source = DataEventAttrBuilder.toSource(pi);
    assertThat(source).isNotBlank().contains(processId).contains(instanceId);
}