+ candidate = DataTreeCandidates.fromNormalizedNode(leafPath, leafNode);
+ CommitTransactionPayload payload = CommitTransactionPayload.create(nextTransactionId(), candidate);
+ assertCandidateEquals(candidate, payload.getCandidate().getValue());
+ }
+
+ @Test
+ public void testUnmodifiedRootCandidate() throws Exception {
+ final DataTree dataTree = new InMemoryDataTreeFactory().create(
+ DataTreeConfiguration.DEFAULT_CONFIGURATION, SchemaContextHelper.select(SchemaContextHelper.CARS_YANG));
+
+ DataTreeModification modification = dataTree.takeSnapshot().newModification();
+ modification.ready();
+ candidate = dataTree.prepare(modification);
+