@Test
void doesNotRetryOnUnknownErrorAsync()
{

    Clock clock = mock( Clock.class );
    ExponentialBackoffRetryLogic retryLogic = newRetryLogic( 1, 1, 1, 1, clock );
    Supplier<CompletionStage<Object>> workMock = newWorkMock();
    IllegalStateException error = new IllegalStateException();
    when( workMock.get() ).thenReturn( failedFuture( error ) );
    Exception e = assertThrows( Exception.class, () -> await( retryLogic.retryAsync( workMock ) ) );
    assertEquals( error, e );
    verify( workMock ).get();
    assertEquals( 0, eventExecutor.scheduleDelays().size() );
}