@Test
public void testConfigureContentTypes() throws Exception {

  ServletContextHandler handler = EasyMock.createNiceMock(ServletContextHandler.class);
  FilterHolder filter = EasyMock.createNiceMock(FilterHolder.class);
  MimeTypes expectedMimeTypes = new MimeTypes();
  EasyMock.expect(handler.getMimeTypes()).andReturn(expectedMimeTypes).anyTimes();
  EasyMock.expect(handler.addFilter(isA(Class.class), anyString(), isA(EnumSet.class))).andReturn(filter).anyTimes();
  replay(handler, filter);
  injector.getInstance(AmbariServer.class).configureRootHandler(handler);
  assertEquals("application/font-woff", expectedMimeTypes.getMimeByExtension("/file.woff").toString());
  assertEquals("application/font-sfnt", expectedMimeTypes.getMimeByExtension("/file.ttf").toString());
  EasyMock.verify(handler);
}