@Test
public void testUrlPathCorrection() {

    when(mTrackerBuilder.getApplicationBaseUrl()).thenReturn("https://package/");
    Tracker tracker = new Tracker(mMatomo, mTrackerBuilder);
    String[] paths = new String[]{null, "", "/",};
    for (String path : paths) {
        TrackMe trackMe = new TrackMe();
        trackMe.set(QueryParams.URL_PATH, path);
        tracker.track(trackMe);
        assertEquals("https://package/", trackMe.get(QueryParams.URL_PATH));
    }
}