@Test
public void retrievesContextResolverFromEmbeddedProviderBinderByClassAndMediaTypeWhenRequiredContextResolverIsNotAvailableInApplicationProviderBinder() {

    ContextResolver<String> contextResolver = mock(ContextResolver.class);
    when(embeddedProviders.getContextResolver(String.class, TEXT_PLAIN_TYPE)).thenReturn(contextResolver);
    assertSame(contextResolver, applicationProviders.getContextResolver(String.class, TEXT_PLAIN_TYPE));
}