@Test
void verifyEventTypeBeingGeneratedWithProcessInstance() {

    final String channelName = "github";
    final String processId = "COOL_PROJECT";
    ProcessInstance pi = mock(ProcessInstance.class);
    when(pi.getProcessId()).thenReturn(processId);
    final String type = DataEventAttrBuilder.toType(channelName, pi);
    assertThat(type)
            .isNotBlank()
            .doesNotContain(processId)
            .contains(processId.toLowerCase())
            .contains(channelName)
            .startsWith(AbstractDataEvent.TYPE_PREFIX);
}