@Test
public void publishesSingletonResponseFilter() {

    ResponseFilter responseFilter = new AllMatchesResponseFilter();
    Application application = mock(Application.class);
    when(application.getSingletons()).thenReturn(newHashSet(responseFilter));
    publisher.publish(application);
    verify(providers).addResponseFilter(responseFilter);
}