@Test
public void testOutlink() throws Exception {

    URL valid = new URL("https://foo.bar");
    track().outlink(valid).with(mTracker);
    verify(mTracker).track(mCaptor.capture());
    assertEquals(valid.toExternalForm(), mCaptor.getValue().get(QueryParams.LINK));
    assertEquals(valid.toExternalForm(), mCaptor.getValue().get(QueryParams.URL_PATH));
    valid = new URL("https://foo.bar");
    track().outlink(valid).with(mTracker);
    verify(mTracker, times(2)).track(mCaptor.capture());
    assertEquals(valid.toExternalForm(), mCaptor.getValue().get(QueryParams.LINK));
    assertEquals(valid.toExternalForm(), mCaptor.getValue().get(QueryParams.URL_PATH));
    valid = new URL("ftp://foo.bar");
    track().outlink(valid).with(mTracker);
    verify(mTracker, times(3)).track(mCaptor.capture());
    assertEquals(valid.toExternalForm(), mCaptor.getValue().get(QueryParams.LINK));
    assertEquals(valid.toExternalForm(), mCaptor.getValue().get(QueryParams.URL_PATH));
}