ClientTransactionCursor implements DOMDataTreeWriteCursor { @Override public void write(final PathArgument child, final NormalizedNode<?, ?> data) { parent.write(current.node(child), data); } ClientTransactionCursor(final ClientTransaction parent); @Override void enter(final PathArgument child); @Override void enter(final PathArgument... path); @Override void enter(final Iterable<PathArgument> path); @Override void exit(); @Override void exit(final int depth); @Override void close(); @Override void delete(final PathArgument child); @Override void merge(final PathArgument child, final NormalizedNode<?, ?> data); @Override void write(final PathArgument child, final NormalizedNode<?, ?> data);  }
@Test public void testWrite() { final YangInstanceIdentifier.NodeIdentifier path = YangInstanceIdentifier.NodeIdentifier.create(NODE_1); final ContainerNode data = createData(path.getNodeType()); cursor.write(path, data); final YangInstanceIdentifier expected = createId(NODE_1); verify(transaction).write(expected, data); }