@Operation(summary = "Get paginated list of organizations")
    @GetMapping(value = "", produces = "application/json")
    @ResponseBody
    public Page<Organization> getAll(@RequestParam(name = "page", defaultValue = "0") int pageIndex,
                                     @RequestParam(name = "size", defaultValue = "30") int pageSize) {
        return organizationService.getAllOrganizations(pageIndex, pageSize);
    }
@Test
    public void getAllOrganizations() {
        when(organizationServiceMock.getAllOrganizations(1, 10)).thenReturn(getPageOrganizations());

        Page<Organization> result = controllerMock.getAll(1, 10);

        verify(organizationServiceMock, times(1)).getAllOrganizations(anyInt(), anyInt());
        assertNotNull(result);
    }