@Test
public void testSetURL() {

    when(mTrackerBuilder.getApplicationBaseUrl()).thenReturn("http://test.com/");
    Tracker tracker = new Tracker(mMatomo, mTrackerBuilder);
    TrackMe trackMe = new TrackMe();
    tracker.track(trackMe);
    assertEquals("http://test.com/", trackMe.get(QueryParams.URL_PATH));
    trackMe.set(QueryParams.URL_PATH, "me");
    tracker.track(trackMe);
    assertEquals("http://test.com/me", trackMe.get(QueryParams.URL_PATH));
    // override protocol
    trackMe.set(QueryParams.URL_PATH, "https://my.com/secure");
    tracker.track(trackMe);
    assertEquals("https://my.com/secure", trackMe.get(QueryParams.URL_PATH));
}