@Test
public void testCanAllocateSameKeysInParallelWithFDBDirectoryLayer() {

    final DirectoryLayer directoryLayer = DirectoryLayer.getDefault();
    testParallelAllocation(true, database,
            key -> database.runAsync(context ->
                    directoryLayer.createOrOpen(context.ensureActive(), Collections.singletonList(key))
                            .thenApply(subspace -> Tuple.fromBytes(subspace.pack()).getLong(0))),
            key -> globalScope.resolve(key),
            ExtendedDirectoryLayer.global(database), ScopedDirectoryLayer.global(database));
}