    @Test
    public void testQueryParamBuilderPageView() throws Exception {

        GoogleAnalyticsData data = new GoogleAnalyticsData
                .DataBuilder("trackingId", "1", "clientId", GoogleAnalyticsConstants.HIT_TYPE_PAGEVIEW)
                .setDocumentPath("/")
                .setDocumentHostName("localhost.com")
                .setDocumentTitle("Home Page")
                .build();

        Assert.assertEquals("v=1&tid=trackingId&cid=clientId&t=pageview&dh=localhost.com&dp=%2F&dt=Home+Page", GoogleAnalyticsDataPublisher.buildPayloadString(data));
    }