@Test
public void build_ServiceValidatorProtocolWithIncompatibleParameter_LogWarnMessage() {

    int protocolVersion = 2;
    CasTicketValidatorBuilder builder = fulfilledBuilder();
    builder.protocolVersion(protocolVersion).proxyTicketValidator(false);
    builder.build();
    List<String> warns = new ArrayList<>();
    warns.add(String.format(SERVICE_VALIDATOR_WARN_MESSAGE_TEMPLATE, "proxyChainsValidation"));
    warns.add(String.format(SERVICE_VALIDATOR_WARN_MESSAGE_TEMPLATE, "proxyChains"));
    warns.add(String.format(SERVICE_VALIDATOR_WARN_MESSAGE_TEMPLATE, "allowEmptyProxyChain"));
    for (String warn : warns) {
        outputCapture.expect(containsString(warn));
    }
    protocolVersion = 3;
    builder.protocolVersion(protocolVersion).proxyTicketValidator(false);
    builder.build();
    for (String warn : warns) {
        outputCapture.expect(containsString(warn));
    }
}