when(processEngine.getIdentityService()).thenReturn(identityServiceMock);
}
private AuthorizationQuery setUpMockQuery(List<Authorization> list) {
AuthorizationQuery query = mock(AuthorizationQuery.class);
when(query.list()).thenReturn(list);
when(query.count()).thenReturn((long) list.size());
when(processEngine.getAuthorizationService().createAuthorizationQuery()).thenReturn(query);
return query;