@Test
public void retrievesMessageBodyReaderByTypeAndMediaType() {

    MessageBodyReader<String> stringMessageBodyReader = new StringEntityProvider();
    applicationProviders.addMessageBodyReader(stringMessageBodyReader);
    assertSame(stringMessageBodyReader, applicationProviders.getMessageBodyReader(String.class, null, null, TEXT_PLAIN_TYPE));
}