@Operation(summary = "list", description = "List host-components")
    @GetMapping("/services/{serviceId}")
    public ResponseEntity<List<HostComponentVO>> listByService(
            @PathVariable Long clusterId, @PathVariable Long serviceId) {
        return ResponseEntity.success(hostComponentService.listByService(clusterId, serviceId));
    }
@Test
    void listByServiceReturnsHostComponentsForService() {
        Long clusterId = 1L;
        Long serviceId = 1L;
        List<HostComponentVO> hostComponents = Arrays.asList(new HostComponentVO(), new HostComponentVO());
        when(hostComponentService.listByService(clusterId, serviceId)).thenReturn(hostComponents);

        ResponseEntity<List<HostComponentVO>> response = hostComponentController.listByService(clusterId, serviceId);

        assertTrue(response.isSuccess());
        assertEquals(hostComponents, response.getData());
    }