@Test
public void publishesRequestFilterWithFactoryAndOverridesPerRequestRequestFilterThroughEverrestApplication() {

    EverrestApplication application = mock(EverrestApplication.class);
    ObjectFactory requestFilterFactory = mockObjectFactory(AllMatchesRequestFilter.class);
    when(application.getClasses()).thenReturn(newHashSet(AllMatchesRequestFilter.class));
    when(application.getFactories()).thenReturn(newHashSet(requestFilterFactory));
    publisher.publish(application);
    verify(providers, never()).addRequestFilter(AllMatchesRequestFilter.class);
    verify(providers).addRequestFilter(requestFilterFactory);
}