// Path: spring-security-cas-extension/src/main/java/com/kakawait/spring/security/cas/client/ticket/ProxyTicketProvider.java
// public interface ProxyTicketProvider {
// 
//     /**
//      * Ask proxy ticket for a given service to CAS server.
//      *
//      * @param service service name or (mostly) service URL
//      * @return the proxy ticket or {@code null} if CAS server won't be able to return us a proxy ticket for given
//      * {@code service}
//      */
//     String getProxyTicket(String service);
// }


import com.kakawait.spring.security.cas.client.ticket.ProxyTicketProvider;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpRequestInterceptor;
import org.springframework.mock.http.client.MockClientHttpRequest;
import org.springframework.security.cas.ServiceProperties;
import java.io.IOException;
import java.net.URI;
import static java.lang.String.format;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
package com.kakawait.spring.security.cas.client;




/**
 * @author Thibaud Leprêtre
 */
@RunWith(MockitoJUnitRunner.class)
public class CasAuthorizationInterceptorTest {

    @Mock
// Path: spring-security-cas-extension/src/main/java/com/kakawait/spring/security/cas/client/ticket/ProxyTicketProvider.java
// public interface ProxyTicketProvider {
// 
//     /**
//      * Ask proxy ticket for a given service to CAS server.
//      *
//      * @param service service name or (mostly) service URL
//      * @return the proxy ticket or {@code null} if CAS server won't be able to return us a proxy ticket for given
//      * {@code service}
//      */
//     String getProxyTicket(String service);
// }


// Path: spring-security-cas-extension/src/test/java/com/kakawait/spring/security/cas/client/CasAuthorizationInterceptorTest.java
import com.kakawait.spring.security.cas.client.ticket.ProxyTicketProvider;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpRequestInterceptor;
import org.springframework.mock.http.client.MockClientHttpRequest;
import org.springframework.security.cas.ServiceProperties;
import java.io.IOException;
import java.net.URI;
import static java.lang.String.format;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

package com.kakawait.spring.security.cas.client;




/**
 * @author Thibaud Leprêtre
 */
@RunWith(MockitoJUnitRunner.class)
public class CasAuthorizationInterceptorTest {

    @Mock
    private ProxyTicketProvider proxyTicketProvider;