// Path: src/main/java/com/burgstaller/okhttp/digest/Credentials.java
// public class Credentials {
//     private String userName;
//     private String password;
// 
//     public Credentials(String userName, String password) {
//         if (userName == null || password == null) {
//             throw new IllegalArgumentException("username and password cannot be null");
//         }
//         this.userName = userName;
//         this.password = password;
//     }
// 
//     public String getUserName() {
//         return userName;
//     }
// 
//     public void setUserName(String userName) {
//         this.userName = userName;
//     }
// 
//     public String getPassword() {
//         return password;
//     }
// 
//     public void setPassword(String password) {
//         this.password = password;
//     }
// }


import com.burgstaller.okhttp.digest.Credentials;
import okhttp3.Protocol;
import okhttp3.Request;
import okhttp3.Response;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import static org.assertj.core.api.Assertions.assertThat;
package com.burgstaller.okhttp.basic;





/**
 * Unit test for basic authenticator.
 *
 * @author Rainer Burgstaller
 */
public class BasicAuthenticatorTest {

    private BasicAuthenticator authenticator;

    @Before
    public void setUp() throws Exception {
// Path: src/main/java/com/burgstaller/okhttp/digest/Credentials.java
// public class Credentials {
//     private String userName;
//     private String password;
// 
//     public Credentials(String userName, String password) {
//         if (userName == null || password == null) {
//             throw new IllegalArgumentException("username and password cannot be null");
//         }
//         this.userName = userName;
//         this.password = password;
//     }
// 
//     public String getUserName() {
//         return userName;
//     }
// 
//     public void setUserName(String userName) {
//         this.userName = userName;
//     }
// 
//     public String getPassword() {
//         return password;
//     }
// 
//     public void setPassword(String password) {
//         this.password = password;
//     }
// }


// Path: src/test/java/com/burgstaller/okhttp/basic/BasicAuthenticatorTest.java
import com.burgstaller.okhttp.digest.Credentials;
import okhttp3.Protocol;
import okhttp3.Request;
import okhttp3.Response;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import static org.assertj.core.api.Assertions.assertThat;

package com.burgstaller.okhttp.basic;





/**
 * Unit test for basic authenticator.
 *
 * @author Rainer Burgstaller
 */
public class BasicAuthenticatorTest {

    private BasicAuthenticator authenticator;

    @Before
    public void setUp() throws Exception {
        authenticator = new BasicAuthenticator(new Credentials("user1", "user1"));