PruningDataTreeModification extends ForwardingObject implements DataTreeModification { @Override public final void ready() { try { delegate.ready(); } catch (SchemaValidationFailedException e) { DataTreeModification newModification = dataTree.takeSnapshot().newModification(); delegate.applyToCursor(new PruningDataTreeModificationCursor(newModification, this)); delegate = newModification; delegate.ready(); } } PruningDataTreeModification(final DataTreeModification delegate, final DataTree dataTree,
            final ReusableNormalizedNodePruner pruner); @Override final EffectiveModelContext getEffectiveModelContext(); @Override final void delete(final YangInstanceIdentifier path); @Override final void ready(); @Override final void applyToCursor(final DataTreeModificationCursor dataTreeModificationCursor); @Override final Optional<NormalizedNode<?, ?>> readNode(final YangInstanceIdentifier yangInstanceIdentifier); @Override final DataTreeModification newModification();  }
@Test public void testReady() { pruningDataTreeModification.ready(); verify(mockModification).ready(); }