System.out.println("----------------");
/// Input data ///
String localMachineName = "D";
DatabaseVersionHeader currentLocalVersion = TestDatabaseUtil.createFromString("A/(A1,C4)/T=8");
DatabaseBranches allBranches = new DatabaseBranches();
// A
allBranches.put("A", TestDatabaseUtil.createBranch(new String[] {
"A/(A2,C4)/T=9", // first conflicting, wins
"A/(A3,C4)/T=10", // same as in B
"A/(A4,C4)/T=11", // second conflict, wins, winners winner
"A/(A5,B1,C4)/T=14" // <<---- WINNERS WINNERS LAST DBV
}));
// B
allBranches.put("B", TestDatabaseUtil.createBranch(new String[] {
"B/(A4,B1,C4)/T=12", // second conflict, loses = winners loser
"B/(A4,B2,C4)/T=15"
}));
// C
allBranches.put("C", TestDatabaseUtil.createBranch(new String[] {
"C/(A1,C5)/T=10", // first conflicting, loses
}));
allBranches.put("D", TestDatabaseUtil.createBranch(new String[] {
"C/(C1)/T=1",
"C/(C2)/T=2",
"C/(C3)/T=3",
"C/(C4)/T=4",
"A/(A1,C4)/T=8", // last common - current DBV in B!