@Test
public void testCopyEmptyIsValidDirectoryLayer() {

    ResolverMappingReplicator replicator = new ResolverMappingReplicator(primary);
    replicator.copyTo(replica);
    Map<String, ResolverResult> dirLayerMappings = new HashMap<>();
    try (FDBRecordContext context = database.openContext()) {
        for (int i = 0; i < 5; i++) {
            String key = "entry-" + i;
            ResolverResult value = replica.resolveWithMetadata(context.getTimer(), key, ResolverCreateHooks.getDefault()).join();
            dirLayerMappings.put(key, value);
        }
        context.commit();
    }
    assertContainsMappings(replica, dirLayerMappings);
}