public void lock( String lockNote ) throws KettleException {
    RepositoryLock lock = lockService.lockJob( getObjectId(), lockNote );
    repObj.setLock( lock );
    uiParent.fireCollectionChanged();
  }
@Test
  public void testLock() throws Exception {
    when( mockLockService.lockJob( mockObjectId, LOCK_NOTE ) ).thenReturn( mockRepositoryLock );
    uiJob.lock( LOCK_NOTE );

    verify( mockEERepositoryObject ).setLock( mockRepositoryLock );
    verify( mockParent ).fireCollectionChanged();

    uiJob.unlock();
    verify( mockEERepositoryObject ).setLock( null );
    verify( mockParent, times( 2 ) ).fireCollectionChanged();
  }