RemoteExecutorServiceImpl extends AbstractKieServerService implements ExecutorService { @Override public ExecutionErrorSummary getError(String serverTemplateId, String deploymentId, String errorId) { ProcessAdminServicesClient processAdminServicesClient = getClient(serverTemplateId, ProcessAdminServicesClient.class); Optional<ExecutionErrorInstance> executionErrorInstance = ofNullable(processAdminServicesClient.getError(deploymentId, errorId)); return executionErrorInstance.map(new ExecutionErrorSummaryMapper()).orElse(null); }  @Override RequestDetails getRequestDetails(String serverTemplateId,
                                            String deploymentId,
                                            Long requestId); @Override Long scheduleRequest(String serverTemplateId,
                                String commandName,
                                Date date,
                                Map<String, String> ctx); @Override void cancelRequest(String serverTemplateId,
                              String deploymentId,
                              Long requestId); @Override void requeueRequest(String serverTemplateId,
                               String deploymentId,
                               Long requestId); @Override void acknowledgeError(String serverTemplateId,
                                 String deploymentId,
                                 String... errorId); @Override ExecutionErrorSummary getError(String serverTemplateId,
                                          String deploymentId,
                                          String errorId);  }
@Test public void testGetExecutionErrorDetails() { final ExecutionErrorInstance errorInstance = createTestError("1"); String serverTemplateId = "testServerTemplateId"; when(processAdminServicesClient.getError(errorInstance.getContainerId(), errorInstance.getErrorId())) .thenReturn(errorInstance); final ExecutionErrorSummary errorSummary = executorService.getError(serverTemplateId, errorInstance.getContainerId(), errorInstance.getErrorId()); verify(kieServerIntegration).getServerClient(serverTemplateId); verify(processAdminServicesClient).getError(errorInstance.getContainerId(), errorInstance.getErrorId()); assertExecutionErrorSummary(errorInstance, errorSummary); }