@Test
public void retrievesContextResolverByClassAndMediaType() {

    ContextResolverText stringContextResolver = new ContextResolverText();
    applicationProviders.addContextResolver(stringContextResolver);
    assertSame(stringContextResolver, applicationProviders.getContextResolver(String.class, TEXT_PLAIN_TYPE));
}