List<HistoricActivityInstance> activities = new ArrayList<HistoricActivityInstance>();
HistoricActivityInstance mockInstance = MockProvider.createMockHistoricActivityInstance();
activities.add(mockInstance);
HistoricActivityInstanceQuery mockHistoricActivityInstanceQuery = mock(HistoricActivityInstanceQuery.class);
when(mockHistoricActivityInstanceQuery.list()).thenReturn(activities);
when(mockHistoryService.createHistoricActivityInstanceQuery()).thenReturn(mockHistoricActivityInstanceQuery);
}
private void createHistoricProcessInstanceMock() {
List<HistoricProcessInstance> processes = new ArrayList<HistoricProcessInstance>();