@Test
public void publishesMessageBodyReaderWithFactoryAndOverridesPerRequestMessageBodyReaderThroughEverrestApplication() {

    EverrestApplication application = mock(EverrestApplication.class);
    ObjectFactory messageBodyReaderFactory = mockObjectFactory(StringEntityProvider.class);
    when(application.getClasses()).thenReturn(newHashSet(StringEntityProvider.class));
    when(application.getFactories()).thenReturn(newHashSet(messageBodyReaderFactory));
    publisher.publish(application);
    verify(providers, never()).addMessageBodyReader(StringEntityProvider.class);
    verify(providers).addMessageBodyReader(messageBodyReaderFactory);
}