@Test
public void retrievesExceptionMapperFromEmbeddedProviderBinderByExceptionTypeWhenRequiredExceptionMapperIsNotAvailableInApplicationProviderBinder() {

    ExceptionMapper<RuntimeException> exceptionMapper = mock(ExceptionMapper.class);
    when(embeddedProviders.getExceptionMapper(RuntimeException.class)).thenReturn(exceptionMapper);
    assertSame(exceptionMapper, applicationProviders.getExceptionMapper(RuntimeException.class));
}