@Test
public void retrievesExceptionMapperByExceptionType() {

    ExceptionMapper<RuntimeException> exceptionMapper = new RuntimeExceptionMapper();
    applicationProviders.addExceptionMapper(exceptionMapper);
    assertSame(exceptionMapper, applicationProviders.getExceptionMapper(RuntimeException.class));
}