@Test
public void logPageView() {

    // ACT
    this.subject.logPageView("test");
    // Assert
    verify(this.mixpanelAPI).timeEvent("test");
    this.subject.logPageView("test2");
    verify(this.mixpanelAPI).track("test"); // finished track old page
    verify(this.mixpanelAPI).timeEvent("test2"); // start track new page
}