// Path: src/main/java/com/ning/metrics/collector/endpoint/extractors/DeserializationType.java
// public enum DeserializationType
// {
//     // BodyResource
//     SMILE, JSON, THRIFT, DEFAULT,
//     // CollectorResource
//     DECIMAL_QUERY,
//     // Base64CollectorResource
//     BASE_64_QUERY,
// }


import com.ning.metrics.collector.endpoint.extractors.DeserializationType;
import org.joda.time.DateTime;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import javax.ws.rs.core.HttpHeaders;
        final ParsedRequest emptyFieldParsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertNull(emptyFieldParsedRequest.getReferrerPath());
    }

    @Test(groups = "fast")
    public void testParseUserAgent() throws Exception
    {
        final ParsedRequest parsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertEquals(parsedRequest.getUserAgent(), userAgent);

        userAgent = null;
        final ParsedRequest emptyFieldParsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertNull(emptyFieldParsedRequest.getUserAgent());
    }

    @Test(groups = "fast")
    public void testParseIP() throws Exception
    {
        final ParsedRequest parsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertEquals(parsedRequest.getIpAddress(), ip);

        ip = null;
        final ParsedRequest emptyFieldParsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertNull(emptyFieldParsedRequest.getIpAddress());
    }

    @Test(groups = "fast")
    public void testParseDateExplicit() throws Exception
    {
        final HttpHeaders httpHeaders = createDummyHeaders();
// Path: src/main/java/com/ning/metrics/collector/endpoint/extractors/DeserializationType.java
// public enum DeserializationType
// {
//     // BodyResource
//     SMILE, JSON, THRIFT, DEFAULT,
//     // CollectorResource
//     DECIMAL_QUERY,
//     // Base64CollectorResource
//     BASE_64_QUERY,
// }


// Path: src/test/java/com/ning/metrics/collector/endpoint/TestParsedRequest.java
import com.ning.metrics.collector.endpoint.extractors.DeserializationType;
import org.joda.time.DateTime;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import javax.ws.rs.core.HttpHeaders;

        final ParsedRequest emptyFieldParsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertNull(emptyFieldParsedRequest.getReferrerPath());
    }

    @Test(groups = "fast")
    public void testParseUserAgent() throws Exception
    {
        final ParsedRequest parsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertEquals(parsedRequest.getUserAgent(), userAgent);

        userAgent = null;
        final ParsedRequest emptyFieldParsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertNull(emptyFieldParsedRequest.getUserAgent());
    }

    @Test(groups = "fast")
    public void testParseIP() throws Exception
    {
        final ParsedRequest parsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertEquals(parsedRequest.getIpAddress(), ip);

        ip = null;
        final ParsedRequest emptyFieldParsedRequest = createParsedRequestWithNoQueryParameter();
        Assert.assertNull(emptyFieldParsedRequest.getIpAddress());
    }

    @Test(groups = "fast")
    public void testParseDateExplicit() throws Exception
    {
        final HttpHeaders httpHeaders = createDummyHeaders();
        final ParsedRequest parsedRequest = new ParsedRequest("DummyEvent", httpHeaders, new DateTime("2001-02-03"), null, null, DeserializationType.DEFAULT);