@Test
public void testGetSession() throws Exception {

  Configuration conf = new HASConfiguration();
  conf.set(HASConfiguration.HADOOP_SECURITY_TOKENAUTH_AUTHENTICATORS_KEY, "simple");
  LoginSession session;
  Login login;
  login = new LoginImpl(conf);
  
  session = SessionManager.get().newSession(login);
  long createTime = session.getCreationTime();
  String sessionID = session.getId();
  System.out.println("creationTime: " + createTime);
  System.out.println("sessionID: " + sessionID);
  
  session = SessionManager.get().getSession(sessionID);
  assertEquals(createTime, session.getCreationTime());
  assertEquals(sessionID, session.getId());
}