StringBuilder sb = new StringBuilder();
sb.append("+\"a\" : { \"int\" : 1 } \n");
sb.append("+\"a/b\" : { \"string\" : \"foo\" } \n");
sb.append("+\"a/c\" : { \"bool\" : true }");
Commit commit = this.buildAndAssertCommit(sb.toString());
List<Instruction> instructions = commit.getInstructions();
Assert.assertEquals(6, instructions.size());
InstructionAssert.assertAddNodeInstruction((AddNodeInstruction) instructions.get(0), "/a");
InstructionAssert.assertAddPropertyInstruction((AddPropertyInstruction) instructions.get(1), "/a", "int", 1);
InstructionAssert.assertAddNodeInstruction((AddNodeInstruction) instructions.get(2), "/a/b");
InstructionAssert.assertAddPropertyInstruction((AddPropertyInstruction) instructions.get(3), "/a/b", "string",