@Test
public void publishesPerRequestExceptionMapper() {

    Application application = mock(Application.class);
    when(application.getClasses()).thenReturn(newHashSet(RuntimeExceptionMapper.class));
    publisher.publish(application);
    verify(providers).addExceptionMapper(RuntimeExceptionMapper.class);
}