@Operation(summary = "Get single certificate")
    @GetMapping(value = "{id}", produces = "application/json")
    @ResponseBody
    public Certificate getById(@PathVariable("id") Long id) {
        return certificateService.getCertificate(id);
    }
@Test
    public void getCertificateById() {
        when(certificateServiceMock.getCertificate(anyLong())).thenReturn(getCertificate());

        Certificate result = controllerMock.getById(anyLong());

        verify(certificateServiceMock, times(1)).getCertificate(anyLong());
        assertEquals("test", result.getCachedCertificate());
    }