NodeHelper { public static DataNode createDataNode( String name ){ return new DataNode( JcrStringHelper.fileNameEncode( name )); }  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 testCreateDataNode() { mLog.info( "testCreateDataNode.." ); try { DataNode lDataNode = NodeHelper.createDataNode( "TEST_NODE" ); assertTrue( "TEST_NODE".equals( lDataNode.getName() ) ); } catch ( Exception e ) { fail(); } }