RemoteCaseManagementServiceImpl implements CaseManagementService { @Override public void closeCaseInstance(final String containerId, final String caseId, final String comment) { client.closeCaseInstance(containerId, caseId, comment); }  @Override List<CaseDefinitionSummary> getCaseDefinitions(); @Override CaseDefinitionSummary getCaseDefinition(final String containerId, final String caseDefinitionId); @Override List<CaseInstanceSummary> getCaseInstances(final CaseInstanceSearchRequest request); @Override String startCaseInstance(final String containerId,
                                    final String caseDefinitionId,
                                    final String owner,
                                    final List<CaseRoleAssignmentSummary> roleAssignments); @Override void cancelCaseInstance(final String containerId, final String caseId); @Override void closeCaseInstance(final String containerId, final String caseId, final String comment); @Override CaseInstanceSummary getCaseInstance(final String containerId, final String caseId); @Override void assignUserToRole(final String containerId,
                                 final String caseId,
                                 final String roleName,
                                 final String user); @Override void assignGroupToRole(final String containerId,
                                  final String caseId,
                                  final String roleName,
                                  final String group); @Override void removeUserFromRole(final String containerId,
                                   final String caseId,
                                   final String roleName,
                                   final String user); @Override void removeGroupFromRole(final String containerId,
                                    final String caseId,
                                    final String roleName,
                                    final String group); @Override List<CaseCommentSummary> getComments(final String containerId,
                                                final String caseId,
                                                final Integer page,
                                                final Integer pageSize); @Override void addComment(final String containerId,
                           final String caseId,
                           final String author,
                           final String text); @Override void updateComment(final String containerId,
                              final String caseId,
                              final String commentId,
                              final String author,
                              final String text); @Override void removeComment(final String containerId,
                              final String caseId,
                              final String commentId); @Override List<CaseMilestoneSummary> getCaseMilestones(final String containerId,
                                                        final String caseId,
                                                        final CaseMilestoneSearchRequest request); @Override List<CaseStageSummary> getCaseStages(final String containerId, final String caseId); @Override Actions getCaseActions(String container, String caseId, String userId); List<CaseActionSummary> getInProgressActions(String containerId,
                                                        String caseId); List<NodeInstance> getCaseCompletedNodes(String containerId, String caseId); List<CaseActionSummary> getCompletedActions(String containerId, String caseId); List<CaseActionSummary> getAdHocFragments(String containerId, String caseId); List<CaseActionSummary> getAdHocActions(String containerId, String caseId); void addDynamicUserTask(String containerId,
                                   String caseId,
                                   String name,
                                   String description,
                                   String actors,
                                   String groups,
                                   Map<String, Object> data); void addDynamicUserTaskToStage(String containerId,
                                          String caseId,
                                          String stageId,
                                          String name,
                                          String description,
                                          String actors,
                                          String groups,
                                          Map<String, Object> data); void addDynamicSubProcess(String containerId,
                                     String caseId,
                                     String processId,
                                     Map<String, Object> data); void addDynamicSubProcessToStage(String containerId,
                                            String caseId,
                                            String stageId,
                                            String processId,
                                            Map<String, Object> data); @Override void triggerAdHocActionInStage(String containerId,
                                          String caseId,
                                          String stageId,
                                          String adHocName,
                                          Map<String, Object> data); @Override void triggerAdHocAction(String containerId,
                                   String caseId,
                                   String adHocName,
                                   Map<String, Object> data); @Override List<ProcessDefinitionSummary> getProcessDefinitions(String containerId); static final int PAGE_SIZE_UNLIMITED; static final String CASE_OWNER_ROLE; }
@Test public void testCloseCaseInstance() { testedService.closeCaseInstance(containerId, caseId, null); verify(clientMock).closeCaseInstance(containerId, caseId, null); }