class RemoteAccountInformationService implements AccountInformationService {

    @Override
    public Response<ConsentsResponse201> createConsent(RequestHeaders requestHeaders,
                                                           RequestParams requestParams,
                                                           Consents consents) {
        ResponseEntity<ConsentsResponse201> responseEntity = client.createConsent(requestParams.toMap(),
            requestHeaders.toMap(),
            consents);
        return new Response<>(
            responseEntity.getStatusCodeValue(),
            responseEntity.getBody(),
            responseHeadersMapper.getHeaders(responseEntity.getHeaders())
        );
    }

    public  RemoteAccountInformationService(
        AccountInformationClient client, ObjectMapper objectMapper
    );
    public  RemoteAccountInformationService(AccountInformationClient client);

}