ksession = engine.getKieSession();
taskService = engine.getTaskService();
setupTestData();
queryResource = new QueryResourceImpl();
IdentityProvider mockIdProvider = mock(IdentityProvider.class);
when(mockIdProvider.getName()).thenReturn(USER_ID);
queryResource.setIdentityProvider(mockIdProvider);