@Test
public void testConfigureRootHandler() throws Exception {

  final ServletContextHandler handler =
      EasyMock.createNiceMock(ServletContextHandler.class);
  final FilterHolder filter = EasyMock.createNiceMock(FilterHolder.class);
  handler.setMaxFormContentSize(-1);
  EasyMock.expectLastCall().once();
  EasyMock.expect(handler.addFilter(GzipFilter.class, "/*",
      EnumSet.of(DispatcherType.REQUEST))).andReturn(filter).once();
  EasyMock.expect(handler.getMimeTypes()).andReturn(new MimeTypes()).anyTimes();
  replay(handler, filter);
  injector.getInstance(AmbariServer.class).configureRootHandler(handler);
  EasyMock.verify(handler);
}