ClientTransactionCursor implements DOMDataTreeWriteCursor { @Override public void close() { parent.closeCursor(this); } 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 testClose() { cursor.close(); verify(transaction).closeCursor(cursor); }