@GetMapping
    public RestResult<List<Namespace>> getNamespaces() {
        return RestResultUtils.success(namespaceOperationService.getNamespaceList());
    }
@Test
    void testGetNamespaces() throws Exception {
        Namespace namespace = new Namespace("", "public");
        when(namespaceOperationService.getNamespaceList()).thenReturn(Collections.singletonList(namespace));
        RestResult<List<Namespace>> actual = namespaceController.getNamespaces();
        assertTrue(actual.ok());
        assertEquals(200, actual.getCode());
        assertEquals(namespace, actual.getData().get(0));
    }