ScopedDirectoryLayer extends LocatableResolver { @Override public CompletableFuture<Void> updateMetadata(FDBRecordContext context, String key, byte[] metadata) { throw new UnsupportedOperationException("cannot update metadata in ScopedDirectoryLayer"); } @Deprecated @API(API.Status.DEPRECATED)  ScopedDirectoryLayer(@Nonnull FDBRecordContext context,
                                @Nonnull KeySpacePath path);  ScopedDirectoryLayer(@Nonnull FDBDatabase database, @Nonnull ResolvedKeySpacePath path); private  ScopedDirectoryLayer(@Nonnull FDBDatabase database,
                                 @Nullable KeySpacePath path,
                                 @Nullable CompletableFuture<ResolvedKeySpacePath> resolvedPath); static ScopedDirectoryLayer global(@Nonnull FDBDatabase database); @Override CompletableFuture<Void> setMapping(FDBRecordContext context, String key, ResolverResult value); @Override CompletableFuture<Void> updateMetadata(FDBRecordContext context, String key, byte[] metadata); @Override CompletableFuture<Void> setWindow(long count); @Override @Nonnull CompletableFuture<Subspace> getMappingSubspaceAsync(); @Override @Nonnull ResolverResult deserializeValue(byte[] value); @Override @Nonnull CompletableFuture<Subspace> getBaseSubspaceAsync(); @VisibleForTesting CompletableFuture<Subspace> getNodeSubspace(FDBRecordContext context); @VisibleForTesting Subspace getContentSubspace();  }
@Test @Override public void testUpdateMetadata() { assertThrows(UnsupportedOperationException.class, () -> { try (FDBRecordContext context = database.openContext()) { globalScope.updateMetadata(context, "foo", null).join(); } }); }