WritableNodeOperation implements WriteCursorStrategy { private void delete(final PathArgument arg, final WriteableModificationNode potentialChild) { cursor.delete(arg); if (potentialChild != null) { potentialChild.markDeleted(); } } protected  WritableNodeOperation(final WriteableModificationNode node, final DOMDataTreeWriteCursor cursor); @Override final void delete(final PathArgument arg); @Override final void merge(final PathArgument arg, final NormalizedNode<?, ?> data); @Override final void write(final PathArgument arg, final NormalizedNode<?, ?> data); @Override final WriteCursorStrategy enter(final PathArgument arg); @Override final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data); @Override @SuppressWarnings("rawtypes") final void writeToCurrent(final NormalizedNodeContainer<?, ?, ?> data);  }
@Test public void deleteTest() throws Exception { returnNoNull(); this.delete(TestUtils.PATH_ARGUMENT); verify(TestUtils.DOM_DATA_TREE_WRITE_CURSOR).delete(TestUtils.PATH_ARGUMENT); verify(TestUtils.WRITEABLE_MODIFICATION_NODE).markDeleted(); }