@Operation(summary = "Read the answers of the 3 apdus and read the pip/pp to send to digid x")
    @PostMapping(value = { Constants.URL_OLD_RDW_POLYMORPHICDATA,
            Constants.URL_RDW_POLYMORPHICDATA }, consumes = "application/json", produces = "application/json")
    public PolyDataResponse getPolymorphicDataRestService(@Valid @RequestBody PolyDataRequest request,
            @RequestHeader(value = "X-FORWARDED-FOR") String clientIp) {
        return rdwService.getPolymorphicDataRestService(request, clientIp);
    }
@Test
    public void getPolymorphicDataRestServiceTest() {
        PolyDataResponse expectedResponse = new PolyDataResponse();
        when(rdwServiceMock.getPolymorphicDataRestService(any(PolyDataRequest.class), anyString())).thenReturn(expectedResponse);

        PolyDataResponse actualResponse = rdwController.getPolymorphicDataRestService(new PolyDataRequest(), "");

        assertEquals(expectedResponse, actualResponse);
    }