@Operation(summary = "list", description = "List hosts")
    @GetMapping
    public ResponseEntity<List<HostVO>> list(@PathVariable Long clusterId) {
        return ResponseEntity.success(hostService.list(clusterId));
    }
@Test
    void listReturnsAllHosts() {
        Long clusterId = 1L;
        List<HostVO> hosts = Arrays.asList(new HostVO(), new HostVO());
        when(hostService.list(clusterId)).thenReturn(hosts);

        ResponseEntity<List<HostVO>> response = hostController.list(clusterId);

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