@Test
public void publishesSingletonRequestFilter() {

    RequestFilter requestFilter = new AllMatchesRequestFilter();
    Application application = mock(Application.class);
    when(application.getSingletons()).thenReturn(newHashSet(requestFilter));
    publisher.publish(application);
    verify(providers).addRequestFilter(requestFilter);
}