@Test
void should_VerifyMethodInvocations_When_CreateTaskHistoryEvent() throws Exception {

  TaskHistoryEvent expectedWb =
      AbstractAccTest.createTaskHistoryEvent(
          "wbKey1", "taskId1", "type1", "wbKey2", "someUserId", "someDetails");
  cutSpy.create(expectedWb);
  verify(taskanaHistoryEngineMock, times(1)).openConnection();
  verify(taskHistoryEventMapperMock, times(1)).insert(expectedWb);
  verify(taskanaHistoryEngineMock, times(1)).returnConnection();
  assertThat(expectedWb.getCreated()).isNotNull();
}