### Question:
AmbariSessionManager { public String getSessionCookie() { return sessionHandler.getSessionCookieConfig().getName(); }  String getCurrentSessionId(); String getSessionCookie(); void setAttribute(String name, Object value); Object getAttribute(String name); void removeAttribute(String name);  }### Answer:
@Test public void testGetSessionCookie() throws Exception { SessionHandler sessionHandler = createNiceMock(SessionHandler.class); SessionCookieConfig sessionCookieConfig = createNiceMock(SessionCookieConfig.class); AmbariSessionManager ambariSessionManager = new AmbariSessionManager(); ambariSessionManager.sessionHandler = sessionHandler; expect(sessionCookieConfig.getName()).andReturn("SESSION_COOKIE").anyTimes(); expect(sessionHandler.getSessionCookieConfig()).andReturn(sessionCookieConfig).anyTimes(); replay(sessionHandler, sessionCookieConfig); assertEquals("SESSION_COOKIE", ambariSessionManager.getSessionCookie()); verify(sessionHandler, sessionCookieConfig); }