@Operation(summary = "Get the right at certificate")
    @PostMapping(value = { Constants.URL_OLD_RDW_GETCERTIFICATE,
            Constants.URL_RDW_GETCERTIFICATE }, consumes = "application/json", produces = "application/json")
    public GetCertificateResponse getCertificateRestService(@Valid @RequestBody GetCertificateRequest request,
                                                            @RequestHeader(value = "X-FORWARDED-FOR") String clientIp) {
        return rdwService.getCertificateRestService(request, clientIp);
    }
@Test
    public void getCertificateRestServiceTest() {
        GetCertificateResponse expectedResponse = new GetCertificateResponse();
        when(rdwServiceMock.getCertificateRestService(any(GetCertificateRequest.class), anyString())).thenReturn(expectedResponse);

        GetCertificateResponse actualResponse = rdwController.getCertificateRestService(new GetCertificateRequest(), "");

        assertEquals(expectedResponse, actualResponse);
    }