public static void validateCardSecurityVsCardAccess(SecurityInfos cardSecurity, int caKeyReference, int paceVersion,
                                                        int taVersion) {
        Assert.notNull(cardSecurity, "cardSecurity may not be null");

        if (caKeyReference != cardSecurity.getCaKeyId() || paceVersion != cardSecurity.getPaceVersion()
                || taVersion != cardSecurity.getTaVersion()) {
            logger.error("the card info and the card security do not match.");
            throw new ClientException("The card info and the card security do not match.");
        }
    }
@Test
    public void validateCardSecurityVsCardAccessSuccessful() {
        CardValidations.validateCardSecurityVsCardAccess(efCardSecurity, 1, 1, 1);
    }