@Test
public void testGetTracking() {

  when(servletContext.getClassLoader()).thenReturn(this.getClass().getClassLoader());
  SessionConfiguration sessionConfiguration = new SessionConfiguration();
  SessionTracking tracking = SessionHelpers.getTracking(servletContext, sessionConfiguration);
  assertTrue("Expecting instance of CookieSessionTracking", tracking instanceof CookieSessionTracking);
  sessionConfiguration.setSessionTracking("URL");
  tracking = SessionHelpers.getTracking(servletContext, sessionConfiguration);
  assertTrue("Expecting instance of UrlSessionTracking", tracking instanceof UrlSessionTracking);
  sessionConfiguration.setSessionTracking(CookieSessionTracking.class.getName());
  tracking = SessionHelpers.getTracking(servletContext, sessionConfiguration);
  assertTrue("Expecting instance of CookieSessionTracking", tracking instanceof CookieSessionTracking);
  assertTrue(tracking instanceof CookieSessionTracking);
  verify(servletContext).getClassLoader();
}