// Path: src/main/java/de/jeha/s3srv/common/http/Headers.java
// public class Headers {
// 
//     public static String AUTHORIZATION = "Authorization";
//     public static String CONNECTION = "Connection";
//     public static String CONTENT_MD5 = "Content-MD5";
//     public static String CONTENT_LENGTH = "Content-Length";
//     public static String CONTENT_TYPE = "Content-Type";
//     public static String DATE = "Date";
//     public static String ETAG = "ETag";
//     public static String HOST = "Host";
//     public static String LAST_MODIFIED = "Last-Modified";
//     public static String LOCATION = "Location";
// 
//     // a-amz
//     public static String X_AMZ_ACL = "x-amz-acl";
// 
// }


import de.jeha.s3srv.common.http.Headers;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import javax.servlet.http.HttpServletRequest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Mockito.when;
package de.jeha.s3srv.common.s3;




/**
 * @author jenshadlich@googlemail.com
 */
public class RequestContextTest {

    @Test
    public void test() {
        final HttpServletRequest mockedRequest = Mockito.mock(HttpServletRequest.class);
        when(mockedRequest.getServerName()).thenReturn("localhost");
// Path: src/main/java/de/jeha/s3srv/common/http/Headers.java
// public class Headers {
// 
//     public static String AUTHORIZATION = "Authorization";
//     public static String CONNECTION = "Connection";
//     public static String CONTENT_MD5 = "Content-MD5";
//     public static String CONTENT_LENGTH = "Content-Length";
//     public static String CONTENT_TYPE = "Content-Type";
//     public static String DATE = "Date";
//     public static String ETAG = "ETag";
//     public static String HOST = "Host";
//     public static String LAST_MODIFIED = "Last-Modified";
//     public static String LOCATION = "Location";
// 
//     // a-amz
//     public static String X_AMZ_ACL = "x-amz-acl";
// 
// }


// Path: src/test/java/de/jeha/s3srv/common/s3/RequestContextTest.java
import de.jeha.s3srv.common.http.Headers;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import javax.servlet.http.HttpServletRequest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Mockito.when;

package de.jeha.s3srv.common.s3;




/**
 * @author jenshadlich@googlemail.com
 */
public class RequestContextTest {

    @Test
    public void test() {
        final HttpServletRequest mockedRequest = Mockito.mock(HttpServletRequest.class);
        when(mockedRequest.getServerName()).thenReturn("localhost");
        when(mockedRequest.getHeader(Headers.HOST)).thenReturn("");