.with(new InitialContent()).createContentRepository();
}
@Test @Ignore("OAK-1159 duplicate content")
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();
Map<String, Long> expected = new HashMap<String, Long>();
for (File f : src.listFiles()) {
if (f.getName().endsWith(".tar")) {
expected.put(f.getName(), f.length());