@VisibleForTesting
  void writeInjectedKtr( String targetFilPath ) throws KettleException {
    if ( shouldWriteToFilesystem() ) {
      writeInjectedKtrToFs( targetFilPath );
    } else {
      writeInjectedKtrToRepo( targetFilPath );
    }
  }
@Test
  public void writeInjectedKtrKeepsDataTest() throws Exception {
    String filepath = "filepath";
    metaInject.writeInjectedKtr( filepath );
    //Make sure realClone( false ) is called and no other, so that the resulting ktr keeps all the info
    verify( data.transMeta, times( 1 ) ).realClone( false );
    verify( data.transMeta, times( 0 ) ).realClone( true );
    verify( data.transMeta, times( 0 ) ).clone();

    //Delete temporary file created by the test
    new File( filepath ).delete();
  }