@Test
public void repeateConcurrentlyWorks() {

    final AtomicInteger integer = new AtomicInteger();
    JVMUtil.repeatConcurrently( 2, 5, new Function<Integer, Object>() {
        @Override
        public Object apply(final Integer input) {
            integer.incrementAndGet();
            return this;
        }
    } );
    assertThat( integer.get(), is( 5 ) );
}