@Operation(summary = "list", description = "list all latest configurations")
    @GetMapping("/latest")
    public ResponseEntity<List<ServiceConfigVO>> latest(@PathVariable Long clusterId) {
        return ResponseEntity.success(configService.latest(clusterId));
    }
@Test
    void latestReturnsEmptyForInvalidClusterId() {
        Long clusterId = 999L;
        when(configService.latest(clusterId)).thenReturn(List.of());

        ResponseEntity<List<ServiceConfigVO>> response = configController.latest(clusterId);

        assertTrue(response.isSuccess());
        assertTrue(response.getData().isEmpty());
    }