public RepositoryElementInterface dataNodeToElement( final DataNode rootNode ) throws KettleException {
    JobMeta jobMeta = new JobMeta();
    dataNodeToElement( rootNode, jobMeta );
    return jobMeta;
  }
@Test
  public void testDataNodeToElement() throws KettleException {
    DataNode dataNode = jobDelegate.elementToDataNode( mockJobMeta );
    setIds( dataNode );
    JobMeta jobMeta = new JobMeta();
    jobDelegate.dataNodeToElement( dataNode, jobMeta );
    assertThat( jobMeta.getJobCopies().size(), equalTo( 1 ) );
    assertThat( jobMeta.getJobEntry( 0 ).getName(), equalTo( "MOCK_NAME" ) );

    assertTrue( "Job Entry should have link back to parent job meta.",
      jobMeta.getJobEntry( 0 ).getParentJobMeta() == jobMeta );
  }