@Test
public void testRemoveAttribute() throws Exception {

  HttpSession session = createNiceMock(HttpSession.class);
  AmbariSessionManager sessionManager =
      createMockBuilder(AmbariSessionManager.class).addMockedMethod("getHttpSession").createMock();
  expect(sessionManager.getHttpSession()).andReturn(session);
  session.removeAttribute("foo");
  replay(session, sessionManager);
  sessionManager.removeAttribute("foo");
  verify(session, sessionManager);
}