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

        ResponseEntity<List<HostComponentVO>> response = hostComponentController.listByHost(clusterId, hostId);

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