@Test
public void addNewNodesToSameParent() throws Exception {
List<Instruction> instructions = new LinkedList<Instruction>();
instructions.add(new AddNodeInstructionImpl("/", "1"));
Commit commit = new CommitImpl("/", "+1 : {}", "This is the 1st commit", instructions);
CommitCommandMongo command = new CommitCommandMongo(mongoConnection, commit);
String firstRevisionId = command.execute();
instructions = new LinkedList<Instruction>();
instructions.add(new AddNodeInstructionImpl("/", "2"));
commit = new CommitImpl("/", "+2 : {}", "This is the 2nd commit", instructions);
command = new CommitCommandMongo(mongoConnection, commit);
String secondRevisionId = command.execute();
instructions = new LinkedList<Instruction>();
instructions.add(new AddNodeInstructionImpl("/", "3"));
commit = new CommitImpl("/", "+3 : {}", "This is the 3rd commit", instructions);
command = new CommitCommandMongo(mongoConnection, commit);
String thirdRevisionId = command.execute();
MongoAssert.assertNodesExist("", NodeBuilder.build(String.format(
"{ \"/#%3$s\" : { \"1#%1$s\" : { } , \"2#%2$s\" : { } , \"3#%3$s\" : { } } }",