@Test
public void publishesSingletonMethodInvokerFilter() {

    MethodInvokerFilter methodInvokerFilter = new AllMatchesMethodInvokerFilter();
    Application application = mock(Application.class);
    when(application.getSingletons()).thenReturn(newHashSet(methodInvokerFilter));
    publisher.publish(application);
    verify(providers).addMethodInvokerFilter(methodInvokerFilter);
}