@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 getServiceByName() {
        Service service = new Service();
        service.setName("test");

        when(serviceServiceMock.getServiceByName("test")).thenReturn(service);
        Service result = controller.getByName("test");

        assertEquals("test", result.getName());
        verify(serviceServiceMock, times(1)).getServiceByName(anyString());
    }