@Test
public void publishesSingletonContextResolver() {

    ContextResolver contextResolver = new ContextResolverText();
    Application application = mock(Application.class);
    when(application.getSingletons()).thenReturn(newHashSet(contextResolver));
    publisher.publish(application);
    verify(providers).addContextResolver(contextResolver);
}