@Test
public void canGetExceptionsConcurenly() {

    assertThat( JVMUtil.repeatConcurrently( Runtime.getRuntime().availableProcessors(), 100, new Runnable() {
        AtomicInteger counter = new AtomicInteger();
        @Override
        public void run() {
            if ( counter.incrementAndGet() % 2 == 0 )
                throw new IllegalStateException( "exception" );
        }
    } ).size(), is( greaterThan( 0 ) ) );
}