@Test
public void getWorkflowInstance() {

  WorkflowInstance instance = Mockito.mock(WorkflowInstance.class);
  @SuppressWarnings("unchecked")
  Set<WorkflowInstanceInclude> includes = Mockito.mock(Set.class);
  when(workflowInstanceDao.getWorkflowInstance(42, includes, 10L)).thenReturn(instance);
  assertEquals(instance, service.getWorkflowInstance(42, includes, 10L));
}