@Test
void testDoGetWorkItemsInProcessInstance(@Mock WorkItem workItem) {

    when(processInstance.workItems(any(SecurityPolicy.class))).thenReturn(singletonList(workItem));
    Object response = tested.doGetWorkItemsInProcessInstance(PROCESS_ID, PROCESS_INSTANCE_ID);
    assertThat(response).isInstanceOf(List.class);
    assertThat(((List)response).get(0)).isEqualTo(workItem);
}