Changeset cs0 = createChangeset();
Changeset cs1 = createChangeset();
Repository repo2 = getTestRepository2();
Bundle bundle = IncomingCommand.on(repo2).execute(repo);
List<Changeset> changesets = bundle.getChangesets();
Assert.assertEquals(2, changesets.size());
// The changesets are not the same objects, because one set is
// in the base repo, while the other set is in the overlay
// repo
Assert.assertEquals(cs0.getNode(), changesets.get(0).getNode());
Assert.assertEquals(cs1.getNode(), changesets.get(1).getNode());
Changeset bundleCs = changesets.get(0);
Assert.assertNotSame(cs0, bundleCs);
Assert.assertFalse(cs0.equals(bundleCs));
bundle.close();
}