@Operation(summary = "Get single service")
    @GetMapping(value = "name/{name}", produces = "application/json")
    @ResponseBody
    public Service getByName(@PathVariable("name") String name) {
        return serviceService.getServiceByName(name);
    }
@Test
    public void serviceNameNotFound() {
        when(serviceServiceMock.getServiceByName(anyString())).thenThrow(NotFoundException.class);
        assertThrows(NotFoundException.class, () -> {
            controller.getByName("test");
        });
    }