MockPersistenceManager pm = new MockPersistenceManager(Arrays.asList(bundle1, bundle2, bundle3));
ConsistencyCheckerImpl checker = new ConsistencyCheckerImpl(pm, null);
// run checker with fix = true
checker.check(null, false, true, null);
// node1 should now have child node entries for node2 and node3
bundle1 = pm.loadBundle(bundle1.getId());
assertEquals(2, bundle1.getChildNodeEntries().size());
assertEquals(bundle2.getId(), bundle1.getChildNodeEntries().get(0).getId());