* but <code>nodeTypeName</code> matches the node type of a residual <code>NodeDef</code>.
*/
public void testResidualAndLegalType()
throws NotExecutableException, RepositoryException {
NodeDefinition nodeDef = NodeTypeUtil.locateChildNodeDef(session, false, false, true);
if (nodeDef == null) {
throw new NotExecutableException("No testable residual child node def.");
}
String type = nodeDef.getRequiredPrimaryTypes()[0].getName();
NodeType nodeType = nodeDef.getDeclaringNodeType();
String undefinedName = NodeTypeUtil.getUndefinedChildNodeName(nodeType);
assertTrue("NodeType.canAddChildNode(String childNodeName, String nodeTypeName) " +
"must return true for a not defined childNodeName if nodeTypeName " +
"matches the type of a residual child node def",