@Test
public void testDigestsMatch() {

    try (FDBRecordContext context = database.openContext()) {
        seedDirectoryLayer(context, primary, 50);
    }
    ResolverMappingReplicator replicator = new ResolverMappingReplicator(primary, 10);
    replicator.copyTo(replica);
    ResolverMappingDigest primaryDigest = new ResolverMappingDigest(primary);
    ResolverMappingDigest replicaDigest = new ResolverMappingDigest(replica);
    assertThat("digests match", primaryDigest.computeDigest().join(), is(replicaDigest.computeDigest().join()));
}