NameValidator extends DefaultValidator { @Override public Validator childNodeDeleted(String name, NodeState before) { return null; } NameValidator(NodeState namespaces, boolean initPhase); @Override void propertyAdded(PropertyState after); @Override void propertyChanged(PropertyState before, PropertyState after); @Override void propertyDeleted(PropertyState before); @Override Validator childNodeAdded(String name, NodeState after); @Override Validator childNodeChanged(
            String name, NodeState before, NodeState after); @Override Validator childNodeDeleted(String name, NodeState before);  }
@Test public void testDeleted() throws CommitFailedException { validator.childNodeDeleted(".", EMPTY_NODE); validator.childNodeDeleted("..", EMPTY_NODE); validator.childNodeDeleted("valid:name", EMPTY_NODE); validator.childNodeDeleted("invalid:name", EMPTY_NODE); validator.childNodeDeleted("invalid/name", EMPTY_NODE); }