@Test
public void createCommandLineWithEnvVarTest() {

  teraDataBulkLoader.setVariable( "TbuilPath", "buildpathvalue" );
  teraDataBulkLoader.setVariable( "VariableFile", "variablefilevalue" );
  teraDataBulkLoader.setVariable( "JobName", "jobnamevalue" );
  setInternalState( teraDataBulkLoader, "tempScriptFile", "scriptValue" );
  when( teraDataBulkLoaderMetaMock.getTbuildPath() ).thenReturn( "${TbuilPath}" );
  when( teraDataBulkLoaderMetaMock.getVariableFile() ).thenReturn( "${VariableFile}" );
  when( teraDataBulkLoaderMetaMock.getJobName() ).thenReturn( "${JobName}" );
  try {
    String commandLine = teraDataBulkLoader.createCommandLine();
    String expected = "buildpathvalue -f scriptValue -v variablefilevalue jobnamevalue";
    assertTrue( commandLine.contains( expected ) );
  } catch ( KettleException e ) {
    fail( e.getMessage() );
  }
}