private void createCaseInstanceMock() {
List<CaseInstance> caseInstances = new ArrayList<CaseInstance>();
CaseInstance mockCaseInstance = MockProvider.createMockCaseInstance();
caseInstances.add(mockCaseInstance);
CaseInstanceQuery mockCaseInstanceQuery = mock(CaseInstanceQuery.class);
when(mockCaseInstanceQuery.list()).thenReturn(caseInstances);
when(mockCaseService.createCaseInstanceQuery()).thenReturn(mockCaseInstanceQuery);
}