public CompletableFuture<JobDetailsInfo> getJobDetails(JobID jobId) {
        final JobDetailsHeaders detailsHeaders = JobDetailsHeaders.getInstance();
        final JobMessageParameters params = new JobMessageParameters();
        params.jobPathParameter.resolve(jobId);

        return sendRequest(detailsHeaders, params);
    }
@Test
    void testJobDetailsContainsSlotSharingGroupId() throws Exception {
        final IOMetricsInfo jobVertexMetrics =
                new IOMetricsInfo(0, false, 0, false, 0, false, 0, false, 0, 0, 0);
        SlotSharingGroupId slotSharingGroupId = new SlotSharingGroupId();
        final Collection<JobDetailsInfo.JobVertexDetailsInfo> jobVertexDetailsInfos =
                Collections.singletonList(
                        new JobDetailsInfo.JobVertexDetailsInfo(
                                new JobVertexID(),
                                slotSharingGroupId,
                                "jobVertex1",
                                2,
                                1,
                                ExecutionState.RUNNING,
                                1,
                                2,
                                1,
                                Collections.singletonMap(ExecutionState.RUNNING, 0),
                                jobVertexMetrics));
        final JobDetailsInfo jobDetailsInfo =
                new JobDetailsInfo(
                        jobId,
                        "foobar",
                        false,
                        JobStatus.RUNNING,
                        JobType.STREAMING,
                        1,
                        2,
                        1,
                        2,
                        10,
                        Collections.singletonMap(JobStatus.RUNNING, 1L),
                        jobVertexDetailsInfos,
                        Collections.singletonMap(ExecutionState.RUNNING, 1),
                        new JobPlanInfo.RawJson("{\"id\":\"1234\"}"));
        final TestJobDetailsInfoHandler jobDetailsInfoHandler =
                new TestJobDetailsInfoHandler(jobDetailsInfo);

        try (TestRestServerEndpoint restServerEndpoint =
                createRestServerEndpoint(jobDetailsInfoHandler)) {
            try (RestClusterClient<?> restClusterClient =
                    createRestClusterClient(restServerEndpoint.getServerAddress().getPort())) {
                final CompletableFuture<JobDetailsInfo> jobDetailsInfoFuture =
                        restClusterClient.getJobDetails(jobId);
                Collection<JobDetailsInfo.JobVertexDetailsInfo> jobVertexInfos =
                        jobDetailsInfoFuture.get().getJobVertexInfos();
                assertThat(jobVertexInfos).hasSize(1);
                assertThat(jobVertexInfos.iterator().next().getSlotSharingGroupId())
                        .isEqualTo(slotSharingGroupId);
            }
        }
    }