@Test public void testGetNormalWorkflowActions() { // given final List<WorkflowActionModel> actions = new ArrayList<WorkflowActionModel>(); actions.add(mock(WorkflowActionModel.class)); when(workflowActionDao.findNormalWorkflowActions(workflow)).thenReturn(actions); // when final List<WorkflowActionModel> endWorkflowActions = workflowActionService.getNormalWorkflowActions(workflow); // then assertThat(endWorkflowActions).isSameAs(actions); }