@Test
public void publishesSingletonMessageBodyReader() {

    MessageBodyReader<String> messageBodyReader = new StringEntityProvider();
    Application application = mock(Application.class);
    when(application.getSingletons()).thenReturn(newHashSet(messageBodyReader));
    publisher.publish(application);
    verify(providers).addMessageBodyReader(messageBodyReader);
}