NodeHelper { public static Node addNode( Node parentNode, String nodeNamePrefix, String nodeName ) throws RepositoryException { return checkAddNode( parentNode, nodeNamePrefix + JcrStringHelper.fileNameEncode( nodeName ) ); }  static boolean hasNode( Node parentNode, String nodeNamePrefix, String nodeName ); static Node addNode( Node parentNode, String nodeNamePrefix, String nodeName ); static Node addNode( Node parentNode, String nodeNamePrefix, String nodeName, String nodeParameter ); static Node getNode( Node parentNode, String nodeNamePrefix, String nodeName ); static DataNode createDataNode( String name );  }
@Test public void testaddNode() { mLog.info( "testaddNode.." ); try { NodeHelper.addNode( node, "PREFIX", "TEST_NODE" ); } catch ( Exception e ) { fail(); } }
@Test public void testaddNode2() { mLog.info( "testaddNode2.." ); try { NodeHelper.addNode( node, "PREFIX", "TEST_NODE", "NODE_PARAM" ); } catch ( Exception e ) { fail(); } }