@Test
public void publishesResponseFilterWithFactoryAndOverridesPerRequestResponseFilterThroughEverrestApplication() {

    EverrestApplication application = mock(EverrestApplication.class);
    ObjectFactory responseFilterFactory = mockObjectFactory(AllMatchesResponseFilter.class);
    when(application.getClasses()).thenReturn(newHashSet(AllMatchesResponseFilter.class));
    when(application.getFactories()).thenReturn(newHashSet(responseFilterFactory));
    publisher.publish(application);
    verify(providers, never()).addResponseFilter(AllMatchesResponseFilter.class);
    verify(providers).addResponseFilter(responseFilterFactory);
}