}
public void testSharedContent() throws Exception {
FileStore source = new FileStore(src, 256, false);
NodeStore store = new SegmentNodeStore(source);
// ~100k
Blob blob = store.createBlob(new ByteArrayInputStream(new byte[100000]));
NodeBuilder builder = store.getRoot().builder();
NodeBuilder c1 = builder.child("test-backup");
c1.setProperty("blob", blob);
NodeBuilder c2 = builder.child("test-backup2");
c2.setProperty("blob", blob);
store.merge(builder, EmptyHook.INSTANCE, CommitInfo.EMPTY);
FileStoreBackup.backup(store, destination);
compare(store, destination);
source.close();