@Test
public void should_propagate_initialization_failure() throws Exception {
thrown.expect(IllegalStateException.class);
thrown.expectMessage("foo");
ServletFilter filter = mock(ServletFilter.class);
doThrow(new IllegalStateException("foo")).when(filter).init(any(FilterConfig.class));
FilterConfig config = mock(FilterConfig.class);
MasterServletFilter filters = new MasterServletFilter();
filters.init(config, Arrays.asList(filter));