  @Test
  public void testSaveNamedClusterRepNoName() throws KettleException, MetaStoreException {

    String hdfsHost = "hdfsHost";
    String hdfsPort = "hdfsPort";
    String jobTrackerHost = "jobTrackerHost";
    String jobTrackerPort = "jobTrackerPort";

    when( namedCluster.getHdfsHost() ).thenReturn( hdfsHost );
    when( namedCluster.getHdfsPort() ).thenReturn( hdfsPort );
    when( namedCluster.getJobTrackerHost() ).thenReturn( jobTrackerHost );
    when( namedCluster.getJobTrackerPort() ).thenReturn( jobTrackerPort );

    namedClusterLoadSaveUtil
      .saveNamedClusterRep( namedCluster, namedClusterService, repository, metaStore, id_job, objectId,
        logChannelInterface );

    verify( repository, never() )
      .saveJobEntryAttribute( eq( id_job ), eq( objectId ), eq( NamedClusterLoadSaveUtil.CLUSTER_NAME ), anyString() );
    verify( repository ).saveJobEntryAttribute( id_job, objectId, NamedClusterLoadSaveUtil.HDFS_HOSTNAME, hdfsHost );
    verify( repository ).saveJobEntryAttribute( id_job, objectId, NamedClusterLoadSaveUtil.HDFS_PORT, hdfsPort );
    verify( repository )
      .saveJobEntryAttribute( id_job, objectId, NamedClusterLoadSaveUtil.JOB_TRACKER_HOSTNAME, jobTrackerHost );
    verify( repository )
      .saveJobEntryAttribute( id_job, objectId, NamedClusterLoadSaveUtil.JOB_TRACKER_PORT, jobTrackerPort );
  }