@Ignore
@Test(timeout = 60000)
public void testLaunch() throws Exception {

  UserGroupInformation ugi =
    UserGroupInformation.createUserForTesting("ambari", new String[]{"ambari"});
  mockStatic(UserGroupInformation.class);
  expect(UserGroupInformation.getCurrentUser()).andReturn(ugi).anyTimes();
  expect(UserGroupInformation.isSecurityEnabled()).andReturn(false).anyTimes();
  ExitUtil.disableSystemExit();
  try {
    historyServer = ApplicationHistoryServer.launchAppHistoryServer(new String[0]);
  } catch (ExitUtil.ExitException e) {
    assertEquals(0, e.status);
    ExitUtil.resetFirstExitException();
    fail();
  }
}