@Test
public void addRace() {

    for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) {
        final AtomicReference<Throwable> error = new AtomicReference<Throwable>();
        final TestException ex = new TestException();
        Runnable r = new Runnable() {
            @Override
            public void run() {
                assertTrue(ExceptionHelper.addThrowable(error, ex));
            }
        };
        TestHelper.race(r, r);
    }
}