@Test
public void testCompletedBlockingInAsyncWarning() {

    FDBDatabaseFactory factory = FDBDatabaseFactory.instance();
    factory.setBlockingInAsyncDetection(BlockingInAsyncDetection.WARN_COMPLETE_EXCEPTION_BLOCKING);
    factory.clear();
    FDBDatabase database = factory.getDatabase();
    TestHelpers.assertLogs(FDBDatabase.class, FDBDatabase.BLOCKING_IN_ASYNC_CONTEXT_MESSAGE,
            () -> database.asyncToSync(new FDBStoreTimer(), FDBStoreTimer.Waits.WAIT_ERROR_CHECK,
                    CompletableFuture.supplyAsync(() ->
                            database.asyncToSync(new FDBStoreTimer(), FDBStoreTimer.Waits.WAIT_ERROR_CHECK, CompletableFuture.completedFuture(10L)))));
}