@Test
public void startNewSession() {

    assertNotNull(sessionTracker);
    assertNull(sessionTracker.getCurrentSession());
    Date date = new Date();
    sessionTracker.startNewSession(date, user, false);
    Session newSession = sessionTracker.getCurrentSession();
    assertNotNull(newSession);
    assertNotNull(newSession.getId());
    assertEquals(date.getTime(), newSession.getStartedAt().getTime());
    assertNotNull(newSession.getUser());
}